From 6a599e0349c15038fd752d3271375a6409888359 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 23 Jun 2022 13:20:21 +0100 Subject: [PATCH] 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 --- 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 b20855f97..a837bc3b1 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");