comparison src/input-method-xlib.c @ 321:19dcec799385 r21-0-58

Import from CVS: tag r21-0-58
author cvs
date Mon, 13 Aug 2007 10:46:44 +0200
parents 7df0dd720c89
children 8e84bee8ddd0
comparison
equal deleted inserted replaced
320:73c75c43c1f2 321:19dcec799385
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");