Author: miguel
Date: 2006-10-30 20:43:50 -0500 (Mon, 30 Oct 2006)
New Revision: 67168
Modified:
trunk/mono/eglib/test/utf8.c
Log:
This was a world of pain to find.
This is causing the problems in bootstrap
Modified: trunk/mono/eglib/test/utf8.c
===================================================================
--- trunk/mono/eglib/test/utf8.c 2006-10-31 01:15:47 UTC (rev 67167)
+++ trunk/mono/eglib/test/utf8.c 2006-10-31 01:43:50 UTC (rev 67168)
@@ -172,6 +172,23 @@
}
RESULT
+test_utf8_seq ()
+{
+ const gchar *src = "\345\271\264\47";
+ glong in_read, out_read;
+ //gunichar2 expected [6];
+ GError *error = NULL;
+
+ printf ("got: %s\n", src);
+ g_utf8_to_utf16 (src, strlen (src), &in_read, &out_read, &error);
+ if (error != NULL){
+ return error->message;
+ }
+
+ return OK;
+}
+
+RESULT
test_utf8_to_utf16 ()
{
const gchar *src0 = "", *src1 = "ABCDE";
@@ -220,6 +237,7 @@
static Test utf8_tests [] = {
{"g_utf16_to_utf8", test_utf16_to_utf8},
{"g_utf8_to_utf16", test_utf8_to_utf16},
+ {"g_utf8_seq", test_utf8_seq},
{"g_convert", test_convert },
{NULL, NULL}
};
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches