File yudit-setlocale.patch of Package yudit
diff -ru yudit-2.7.5.beta15.orig/swindow/sx11/SXInputMethod.cpp yudit-2.7.5.beta15/swindow/sx11/SXInputMethod.cpp
--- yudit-2.7.5.beta15.orig/swindow/sx11/SXInputMethod.cpp 2003-01-14 05:21:41.000000000 +0100
+++ yudit-2.7.5.beta15/swindow/sx11/SXInputMethod.cpp 2003-06-13 12:06:23.000000000 +0200
@@ -794,9 +794,9 @@
#ifdef HAVE_LOCALE
SString zlocale = slocale;
zlocale.append ((char)0);
- if (!setlocale (LC_ALL, zlocale.array()))
+ if (!setlocale (LC_CTYPE, zlocale.array()))
{
- setlocale (LC_ALL, "C");
+ setlocale (LC_CTYPE, "C");
fprintf (stderr, "Locale %s is not supported by C library.\n",
zlocale.array());
}
@@ -918,10 +918,10 @@
icEncoding = "";
localeOK = false;
#ifdef HAVE_LOCALE
- setlocale (LC_ALL, "C");
- if (!setlocale (LC_ALL, "C"))
+ setlocale (LC_CTYPE, "C");
+ if (!setlocale (LC_CTYPE, "C"))
{
- setlocale (LC_ALL, "C");
+ setlocale (LC_CTYPE, "C");
fprintf (stderr, "Locale C is not supported by C library.\n");
}
else if (!XSupportsLocale())
@@ -931,7 +931,7 @@
else
{
localeOK = true;
- //fprintf (stderr, "set locale %s.\n", zlocale.array());
+ //fprintf (stderr, "set locale %s.\n", "C");
}
#endif
isAscii = true;