comparison src/input-method-xlib.c @ 223:2c611d1463a6 r20-4b10

Import from CVS: tag r20-4b10
author cvs
date Mon, 13 Aug 2007 10:10:54 +0200
parents e45d5e7c476e
children 966663fcf606
comparison
equal deleted inserted replaced
222:aae4c8b01452 223:2c611d1463a6
109 stderr_out ("X Windows does not even support locale `C'!\n"); 109 stderr_out ("X Windows does not even support locale `C'!\n");
110 return; 110 return;
111 } 111 }
112 } 112 }
113 113
114 setlocale(LC_NUMERIC, "C");
115
114 if (XSetLocaleModifiers ("") == NULL) 116 if (XSetLocaleModifiers ("") == NULL)
115 { 117 {
116 stderr_out ("XSetLocaleModifiers(\"\") failed\n"); 118 stderr_out ("XSetLocaleModifiers(\"\") failed\n");
117 stderr_out ("Check the value of the XMODIFIERS environment variable.\n"); 119 stderr_out ("Check the value of the XMODIFIERS environment variable.\n");
118 } 120 }
764 if (bad_arg != NULL) 766 if (bad_arg != NULL)
765 stderr_out ("Couldn't get IC value: %s\n", bad_arg); 767 stderr_out ("Couldn't get IC value: %s\n", bad_arg);
766 768
767 stderr_out ("\nInput method context attributes:\n"); 769 stderr_out ("\nInput method context attributes:\n");
768 stderr_out ("Style: "); describe_XIMStyle (style); 770 stderr_out ("Style: "); describe_XIMStyle (style);
769 stderr_out ("Client window: %x\n", client_win); 771 stderr_out ("Client window: %lx\n", (unsigned long int)client_win);
770 stderr_out ("Focus window: %x\n", focus_win); 772 stderr_out ("Focus window: %lx\n", (unsigned long int)focus_win);
771 stderr_out ("Preedit:\n"); 773 stderr_out ("Preedit:\n");
772 describe_XRectangle (" Area", p_area); 774 describe_XRectangle (" Area", p_area);
773 describe_XRectangle (" Area needed", p_needed); 775 describe_XRectangle (" Area needed", p_needed);
774 stderr_out (" foreground: %x\n", p_fg); 776 stderr_out (" foreground: %lx\n", (unsigned long int)p_fg);
775 stderr_out (" background: %x\n", p_bg); 777 stderr_out (" background: %lx\n", (unsigned long int)p_bg);
776 stderr_out (" fontset: "); describe_XFontSet (p_fontset); 778 stderr_out (" fontset: "); describe_XFontSet (p_fontset);
777 stderr_out ("Status:\n"); 779 stderr_out ("Status:\n");
778 describe_XRectangle (" Area", s_area); 780 describe_XRectangle (" Area", s_area);
779 describe_XRectangle (" Area needed", s_needed); 781 describe_XRectangle (" Area needed", s_needed);
780 stderr_out (" foreground: %x\n", s_fg); 782 stderr_out (" foreground: %lx\n", (unsigned long int)s_fg);
781 stderr_out (" background: %x\n", s_bg); 783 stderr_out (" background: %lx\n", (unsigned long int)s_bg);
782 stderr_out (" fontset: \n"); describe_XFontSet (s_fontset); 784 stderr_out (" fontset: \n"); describe_XFontSet (s_fontset);
783 stderr_out ("XNResourceName: %s\n", resourceName ? resourceName : "NULL"); 785 stderr_out ("XNResourceName: %s\n", resourceName ? resourceName : "NULL");
784 stderr_out ("XNResourceClass: %s\n", resourceClass ? resourceClass : "NULL"); 786 stderr_out ("XNResourceClass: %s\n", resourceClass ? resourceClass : "NULL");
785 stderr_out ("XNFilterEvents: "); describe_event_mask (filter_mask); 787 stderr_out ("XNFilterEvents: "); describe_event_mask (filter_mask);
786 } 788 }