Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/eglib
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2006-10-31 04:43:50 +0300
committerMiguel de Icaza <miguel@gnome.org>2006-10-31 04:43:50 +0300
commit45922c5680a7af3e915e6d3046bb5fee47ff8df4 (patch)
treea81fad21d3a141fbfc69f46e8ddd05ff32058ab7 /eglib
parentf7e8592a9cb9b933466e3d90417819ff5743f1e0 (diff)
This was a world of pain to find.
This is causing the problems in bootstrap svn path=/trunk/mono/; revision=67168
Diffstat (limited to 'eglib')
-rw-r--r--eglib/test/utf8.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/eglib/test/utf8.c b/eglib/test/utf8.c
index 303f3620852..eff6ef3d46d 100644
--- a/eglib/test/utf8.c
+++ b/eglib/test/utf8.c
@@ -172,6 +172,23 @@ compare_utf8_to_utf16 (const gunichar2 *expected, const gchar *utf8, glong len_i
}
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 @@ test_convert ()
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}
};