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