6447517.patch revision 950
950N/AFix for Solaris bug 6447517: Cannot login to JDS desktop for Egyptian and
950N/A Saudi Arabic UTF-8 locales (ar_EG, ar_SA)
950N/A
950N/AThis was root caused to the decimal separator for the Arabic UTF-8 locales
950N/Abeing set to U+066b (oxd9ab) while for the non UTF-8 "ar" locale this is 0x2c.
950N/A
950N/AAdds code to setlocale before attempting to read fonts.conf file.
950N/AReset the locale after reading file.
950N/A
950N/A
950N/Adiff -urp -x '*~' -x '*.orig' src/fcxml.c src/fcxml.c
950N/A--- src/fcxml.c 2009-11-16 14:46:18.000000000 -0800
950N/A+++ src/fcxml.c 2010-05-10 15:00:04.697920803 -0700
950N/A@@ -2456,6 +2456,9 @@ FcConfigParseAndLoad (FcConfig *conf
950N/A void *buf;
950N/A #endif
950N/A
950N/A+ char *cur_locale = setlocale (LC_NUMERIC, NULL);
950N/A+ setlocale (LC_NUMERIC, "C");
950N/A+
950N/A filename = FcConfigFilename (name);
950N/A if (!filename)
950N/A goto bail0;
950N/A@@ -2555,6 +2558,7 @@ bail1:
950N/A close (fd);
950N/A fd = -1;
950N/A bail0:
950N/A+ setlocale (LC_NUMERIC, cur_locale);
950N/A if (error && complain)
950N/A {
950N/A if (name)