Document the GetLocaleInfoA buffer test

Francois Gouget fgouget at free.fr
Thu Dec 12 13:01:56 CST 2002


Changelog:

 * dlls/kernel/tests/locale.c

   Mention the applications that depend on the behavior checked by the
GetLocaleInfoA partial buffer test


Index: dlls/kernel/tests/locale.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/locale.c,v
retrieving revision 1.8
diff -u -r1.8 locale.c
--- dlls/kernel/tests/locale.c	12 Dec 2002 03:56:09 -0000	1.8
+++ dlls/kernel/tests/locale.c	12 Dec 2002 18:41:23 -0000
@@ -51,6 +51,9 @@
 	lcid = MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT );
 	ok (lcid == 0x409, "wrong LCID calculated");

+        /* HTMLKit and "Font xplorer lite" expect GetLocaleInfoA to
+         * partially fill the buffer even if it is too short. See bug 637.
+         */
 	strcpy(Expected, "xxxxx");
 	memset( buffer, 'x', sizeof(buffer) );
 	ret = GetLocaleInfoA(lcid, LOCALE_SDAYNAME1, buffer, 0);


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                     Avoid the Gates of Hell - use Linux.




More information about the wine-patches mailing list