[glib: 6/16] tests: Fix an invalid UTF-8 sequence in the uri tests




commit b82bfe7642e1ec06399853f7299dd58f6531c50f
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Jun 14 18:33:49 2022 +0100

    tests: Fix an invalid UTF-8 sequence in the uri tests
    
    This sequence was meant to be valid, but was incorrectly just the octal
    form of the desired Unicode codepoint, not the UTF-8 encoding of that
    codepoint.
    
    This was causing `g_test_message()` to print an `[Invalid UTF-8]`
    warning.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 glib/tests/uri.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/uri.c b/glib/tests/uri.c
index 0152b1a76d..0b9ca1a9ff 100644
--- a/glib/tests/uri.c
+++ b/glib/tests/uri.c
@@ -351,7 +351,7 @@ test_uri_unescape_string (void)
       { "%0", NULL, NULL },
       { "%ra", NULL, NULL },
       { "%2r", NULL, NULL },
-      { "Timm B\344der", NULL, "Timm B\344der" },
+      { "Timm B\303\244der", NULL, "Timm B\303\244der" },
       { NULL, NULL, NULL },  /* actually a valid test, not a delimiter */
     };
   gsize i;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]