aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/tests
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@gmail.com>2022-10-28 01:24:48 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2022-10-29 21:09:11 +0000
commit621bf91893ad96c2ec46e603bf4c5b8762e3f730 (patch)
tree0cf788aa1295b7bfb46747d4ab8c074f248376ba /lib/libc/tests
parent29972f06f95d6f5f550ac81367d5ebda8d6860a8 (diff)
downloadsrc-621bf91893ad96c2ec46e603bf4c5b8762e3f730.tar.gz
src-621bf91893ad96c2ec46e603bf4c5b8762e3f730.zip
strfmon_l: Use specified locale for number formatting
strfmon_l does not take fully into consideration the explicitly passed locale to perform the formatting. Parallel universe bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=19633 Obtained from: Darwin Reviewed by: kib PR: 267410 Github PR: #620 MFC after: 1 week
Diffstat (limited to 'lib/libc/tests')
-rw-r--r--lib/libc/tests/stdlib/strfmon_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/tests/stdlib/strfmon_test.c b/lib/libc/tests/stdlib/strfmon_test.c
index dcad17d3dbfd..224b3f44911e 100644
--- a/lib/libc/tests/stdlib/strfmon_test.c
+++ b/lib/libc/tests/stdlib/strfmon_test.c
@@ -224,8 +224,8 @@ ATF_TC_BODY(strfmon_l, tc)
const char *expected;
} tests[] = {
{ "C", "[ **1234.57 ] [ **1234.57 ]" },
- { "de_DE.UTF-8", "[ €**1234.57 ] [ EUR**1234.57 ]" }, /* XXX */
- { "en_GB.UTF-8", "[ £**1234.57 ] [ GBP**1234.57 ]" }, /* XXX */
+ { "de_DE.UTF-8", "[ **1234,57 €] [ **1.234,57 EUR]" },
+ { "en_GB.UTF-8", "[ £**1234.57] [ GBP**1,234.57]" },
};
locale_t loc;
size_t i;