Mercurial > hg > xemacs-beta
comparison src/input-method-xfs.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 | 65c19d2020f7 |
comparison
equal
deleted
inserted
replaced
222:aae4c8b01452 | 223:2c611d1463a6 |
---|---|
39 #ifdef USE_XFONTSET | 39 #ifdef USE_XFONTSET |
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 XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL); |
46 if ((locale = setlocale (LC_ALL, "")) == NULL) | 46 if ((locale = setlocale (LC_ALL, "")) == NULL) |
47 { | 47 { |
48 stderr_out ("Can't set locale.\n"); | 48 stderr_out ("Can't set locale.\n"); |
49 stderr_out ("Using C locale instead.\n"); | 49 stderr_out ("Using C locale instead.\n"); |
71 { | 71 { |
72 stderr_out ("X Windows does not even support locale `C'!\n"); | 72 stderr_out ("X Windows does not even support locale `C'!\n"); |
73 return; | 73 return; |
74 } | 74 } |
75 } | 75 } |
76 | |
77 setlocale(LC_NUMERIC, "C"); | |
76 | 78 |
77 if (XSetLocaleModifiers ("") == NULL) | 79 if (XSetLocaleModifiers ("") == NULL) |
78 { | 80 { |
79 stderr_out ("XSetLocaleModifiers(\"\") failed\n"); | 81 stderr_out ("XSetLocaleModifiers(\"\") failed\n"); |
80 stderr_out ("Check the value of the XMODIFIERS environment variable.\n"); | 82 stderr_out ("Check the value of the XMODIFIERS environment variable.\n"); |