+2005-09-16 Tor Lillqvist <tml@novell.com>
+
+ * glib/gstrfuncs.c (g_ascii_strcasecmp, g_ascii_strncasecmp): Add
+ warning to doc comment that these functions should not be used on
+ encodings like CP932.
+
2005-09-14 Matthias Clasen <mclasen@redhat.com>
* tests/keyfile-test.c: Add a test for grup names of length 1.
+2005-09-16 Tor Lillqvist <tml@novell.com>
+
+ * glib/gstrfuncs.c (g_ascii_strcasecmp, g_ascii_strncasecmp): Add
+ warning to doc comment that these functions should not be used on
+ encodings like CP932.
+
2005-09-14 Matthias Clasen <mclasen@redhat.com>
* tests/keyfile-test.c: Add a test for grup names of length 1.
+2005-09-16 Tor Lillqvist <tml@novell.com>
+
+ * glib/gstrfuncs.c (g_ascii_strcasecmp, g_ascii_strncasecmp): Add
+ warning to doc comment that these functions should not be used on
+ encodings like CP932.
+
2005-09-14 Matthias Clasen <mclasen@redhat.com>
* tests/keyfile-test.c: Add a test for grup names of length 1.
*
* Unlike the BSD strcasecmp() function, this only recognizes standard
* ASCII letters and ignores the locale, treating all non-ASCII
- * characters as if they are not letters.
- *
+ * bytes as if they are not letters.
+ *
+ * This function should be used only on strings that are known to be
+ * in encodings where the bytes corresponding to ASCII letters always
+ * represent themselves. This includes UTF-8 and the ISO-8859-*
+ * charsets, but not for instance double-byte encodings like the
+ * Windows Codepage 932, where the trailing bytes of double-byte
+ * characters include all ASCII letters. If you compare two CP932
+ * strings using this function, you will get false matches.
+ *
* Return value: an integer less than, equal to, or greater than
* zero if @s1 is found, respectively, to be less than,
* to match, or to be greater than @s2.
* ASCII letters and ignores the locale, treating all non-ASCII
* characters as if they are not letters.
*
+ * The same warning as in g_ascii_strcasecmp() applies: Use this
+ * function only on strings known to be in encodings where bytes
+ * corresponding to ASCII letters always represent themselves.
+ *
* Return value: an integer less than, equal to, or greater than zero
* if the first @n bytes of @s1 is found, respectively,
* to be less than, to match, or to be greater than the