[glib/wip/smcv/more-figure-spaces] gdatetime test: Consistently expect %k to generate a figure space




commit e1d91f492a09f81532e4bffd0531788d9ba80332
Author: Simon McVittie <smcv debian org>
Date:   Thu Jun 23 13:20:21 2022 +0100

    gdatetime test: Consistently expect %k to generate a figure space
    
    This part of test_non_utf8_printf() was missed while converting other
    test expectations to look for a figure space, probably because it is
    only run if a legacy ja_JP.eucjp locale exists. Debian generates a fairly
    comprehensive set of locales (including some that are non-UTF-8) while
    running GLib's installed-tests, so this was caught by CI.
    
    Fixes: 7074122 "gdatetime: Pad numbers with numeric space"
    Signed-off-by: Simon McVittie <smcv debian org>

 glib/tests/gdatetime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c
index b20855f970..a837bc3b1b 100644
--- a/glib/tests/gdatetime.c
+++ b/glib/tests/gdatetime.c
@@ -1708,7 +1708,7 @@ test_non_utf8_printf (void)
   TEST_PRINTF_TIME (12, 0, 0, "%I", "12");
   TEST_PRINTF_TIME (15, 0, 0, "%I", "03");
   TEST_PRINTF ("%j", "297");
-  TEST_PRINTF ("%k", " 0");
+  TEST_PRINTF ("%k", "\u20070");
   TEST_PRINTF_TIME (13, 13, 13, "%k", "13");
   TEST_PRINTF ("%l", "12");
   TEST_PRINTF_TIME (12, 0, 0, "%I", "12");


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