]> git.pld-linux.org Git - packages/xemacs.git/blob - xemacs-set-locale-to-c-when-not-supported-by-x.patch
- updated; still bad paths to files
[packages/xemacs.git] / xemacs-set-locale-to-c-when-not-supported-by-x.patch
1 diff -ru xemacs-21.5.21.orig/src/intl.c xemacs-21.5.21/src/intl.c
2 --- xemacs-21.5.21.orig/src/intl.c      2002-05-28 10:44:55.000000000 +0200
3 +++ xemacs-21.5.21/src/intl.c   2005-06-13 16:23:51.000000000 +0200
4 @@ -82,8 +82,10 @@
5  #ifdef HAVE_X_WINDOWS
6    if (!init_x_locale (locale))
7      {
8 -      /* Locale not supported under X.  Put it back. */
9 -      setlocale (LC_ALL, loc);
10 +      /* Locale not supported under X.  Set locale to "C" and print a warning. */
11 +           warn_when_safe (Qwarning, Qwarning,
12 +                           "locale not supported by Xlib, setting locale to C.");
13 +      setlocale (LC_ALL, "C");
14        setlocale (LC_NUMERIC, "C");
15        return Qnil;
16      }
This page took 0.025737 seconds and 3 git commands to generate.