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
1590N/A--- a/src/fcxml.c Thu Jun 18 09:18:07 2015
1590N/A+++ b/src/fcxml.c Thu Jun 18 09:19:31 2015
1590N/A@@ -3226,6 +3226,9 @@
950N/A void *buf;
950N/A #endif
1590N/A
1590N/A+ char *cur_locale = setlocale (LC_NUMERIC, NULL);
950N/A+ setlocale (LC_NUMERIC, "C");
950N/A+
1590N/A #ifdef _WIN32
1590N/A if (!pGetSystemWindowsDirectory)
1590N/A {
1590N/A@@ -3346,6 +3349,7 @@
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)