comparison src/input-method-xlib.c @ 377:d883f39b8495 r21-2b4

Import from CVS: tag r21-2b4
author cvs
date Mon, 13 Aug 2007 11:05:42 +0200
parents cc15677e0335
children 8626e4521993
comparison
equal deleted inserted replaced
376:e2295b4d9f2e 377:d883f39b8495
77 void 77 void
78 Initialize_Locale (void) 78 Initialize_Locale (void)
79 { 79 {
80 char *locale; 80 char *locale;
81 81
82 XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL); 82 /* dverna - Nov. 98: ### DON'T DO THIS !!! The default XtLanguageProc
83 routine calls setlocale(LC_ALL, lang) which fucks up our lower-level
84 locale management, and especially the value of LC_NUMERIC. Anyway, since
85 at this point, we don't know yet whether we're gonna need an X11 frame,
86 we should really do it manually and not use Xlib's dumb default routine */
87 /*XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL);*/
83 if ((locale = setlocale (LC_ALL, "")) == NULL) 88 if ((locale = setlocale (LC_ALL, "")) == NULL)
84 { 89 {
85 stderr_out ("Can't set locale.\n"); 90 stderr_out ("Can't set locale.\n");
86 stderr_out ("Using C locale instead.\n"); 91 stderr_out ("Using C locale instead.\n");
87 putenv ("LANG=C"); 92 putenv ("LANG=C");