comparison src/input-method-motif.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 74fd4e045ea6
comparison
equal deleted inserted replaced
376:e2295b4d9f2e 377:d883f39b8495
39 void 39 void
40 Initialize_Locale (void) 40 Initialize_Locale (void)
41 { 41 {
42 char *locale; 42 char *locale;
43 43
44 XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL); 44 /* dverna - Nov. 98: ### DON'T DO THIS !!! The default XtLanguageProc
45 routine calls setlocale(LC_ALL, lang) which fucks up our lower-level
46 locale management, and especially the value of LC_NUMERIC. Anyway, since
47 at this point, we don't know yet whether we're gonna need an X11 frame,
48 we should really do it manually and not use Xlib's dumb default routine */
49 /*XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL);*/
45 if ((locale = setlocale (LC_ALL, "")) == NULL) 50 if ((locale = setlocale (LC_ALL, "")) == NULL)
46 { 51 {
47 stderr_out ("Can't set locale.\n"); 52 stderr_out ("Can't set locale.\n");
48 stderr_out ("Using C locale instead.\n"); 53 stderr_out ("Using C locale instead.\n");
49 putenv ("LANG=C"); 54 putenv ("LANG=C");