Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/src/input-method-xlib.c Mon Aug 13 10:10:03 2007 +0200 +++ b/src/input-method-xlib.c Mon Aug 13 10:10:54 2007 +0200 @@ -111,6 +111,8 @@ } } + setlocale(LC_NUMERIC, "C"); + if (XSetLocaleModifiers ("") == NULL) { stderr_out ("XSetLocaleModifiers(\"\") failed\n"); @@ -766,19 +768,19 @@ stderr_out ("\nInput method context attributes:\n"); stderr_out ("Style: "); describe_XIMStyle (style); - stderr_out ("Client window: %x\n", client_win); - stderr_out ("Focus window: %x\n", focus_win); + stderr_out ("Client window: %lx\n", (unsigned long int)client_win); + stderr_out ("Focus window: %lx\n", (unsigned long int)focus_win); stderr_out ("Preedit:\n"); describe_XRectangle (" Area", p_area); describe_XRectangle (" Area needed", p_needed); - stderr_out (" foreground: %x\n", p_fg); - stderr_out (" background: %x\n", p_bg); + stderr_out (" foreground: %lx\n", (unsigned long int)p_fg); + stderr_out (" background: %lx\n", (unsigned long int)p_bg); stderr_out (" fontset: "); describe_XFontSet (p_fontset); stderr_out ("Status:\n"); describe_XRectangle (" Area", s_area); describe_XRectangle (" Area needed", s_needed); - stderr_out (" foreground: %x\n", s_fg); - stderr_out (" background: %x\n", s_bg); + stderr_out (" foreground: %lx\n", (unsigned long int)s_fg); + stderr_out (" background: %lx\n", (unsigned long int)s_bg); stderr_out (" fontset: \n"); describe_XFontSet (s_fontset); stderr_out ("XNResourceName: %s\n", resourceName ? resourceName : "NULL"); stderr_out ("XNResourceClass: %s\n", resourceClass ? resourceClass : "NULL");