I took a closer look at the code and I think this is a functionally
equivalent but much better way to fix the non-MULE Windows build than the
patch I submitted last week [1]. Since the non-MULE build is broken right
now, I think I'll commit this in a day or two unless someone objects.
Mike
[1]
http://list-archive.xemacs.org/xemacs-patches/200509/msg00012.html
src/ChangeLog addition:
2005-09-12 Mike Alexander <mta(a)arbortext.com>
* intl-win32.c (mswindows_current_locale): Define in non-MULE
build.
xemacs source patch:
Diff command: C:/PROGRA~1/GNU/WinCvs~1.3/cvs -q diff -u
Files affected: src/intl-win32.c
Index: src/intl-win32.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/intl-win32.c,v
retrieving revision 1.15
diff -u -u -r1.15 intl-win32.c
--- src/intl-win32.c 2005/03/13 09:21:04 1.15
+++ src/intl-win32.c 2005/09/12 16:07:04
@@ -1550,6 +1550,13 @@
return CP_ACP;
}
+LCID
+mswindows_current_locale (void)
+{
+ /* In non-MULE version just return the default locale */
+ return GetUserDefaultLCID ();
+}
+
#endif /* MULE */