Add length arguments to g_utf8_{strup,strdown,casefold,collate_key}.

Fri Jul  6 22:34:32 2001  Owen Taylor  <otaylor@redhat.com>

	* glib/gunicode.h glib/gunidecomp.c glib/guniprop.c
	  glib/gunicollate.c: Add length arguments to
	g_utf8_{strup,strdown,casefold,collate_key}.

	* glib/gdate.c: Fix for above.
This commit is contained in:
Owen Taylor
2001-07-07 02:42:49 +00:00
committed by Owen Taylor
parent 33e1075b22
commit f1f680b68c
16 changed files with 129 additions and 54 deletions

View File

@@ -54,7 +54,7 @@ int main (int argc, char **argv)
test = strings[1];
convert = g_utf8_strup (test);
convert = g_utf8_strup (test, -1);
if (strcmp (convert, strings[4]) != 0)
{
fprintf (stderr, "Failure: toupper(%s) == %s, should have been %s\n",
@@ -63,7 +63,7 @@ int main (int argc, char **argv)
}
g_free (convert);
convert = g_utf8_strdown (test);
convert = g_utf8_strdown (test, -1);
if (strcmp (convert, strings[2]) != 0)
{
fprintf (stderr, "Failure: tolower(%s) == %s, should have been %s\n",
@@ -98,7 +98,7 @@ int main (int argc, char **argv)
test = strings[0];
convert = g_utf8_casefold (test);
convert = g_utf8_casefold (test, -1);
if (strcmp (convert, strings[1]) != 0)
{
fprintf (stderr, "Failure: casefold(%s) == '%s', should have been '%s'\n",