summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2007-12-03 17:48:55 +0000
committerdas <das@FreeBSD.org>2007-12-03 17:48:55 +0000
commit33c8c2ef9f896225425077f937727fa0e3372aac (patch)
tree0f4a2d7b43898f82444834abeca3f3a8dd578ef4 /tools
parentb787f17ecc777bef5fca9dca1be2ecbe113a9bd9 (diff)
downloadFreeBSD-src-33c8c2ef9f896225425077f937727fa0e3372aac.zip
FreeBSD-src-33c8c2ef9f896225425077f937727fa0e3372aac.tar.gz
Make sure we set the locale to "C" when testing thousands' separator
support, rather than just "", which refers to the system default based on the environment.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/lib/libc/stdio/test-printfloat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/lib/libc/stdio/test-printfloat.c b/tools/regression/lib/libc/stdio/test-printfloat.c
index 5717a15..3c979c0 100644
--- a/tools/regression/lib/libc/stdio/test-printfloat.c
+++ b/tools/regression/lib/libc/stdio/test-printfloat.c
@@ -53,7 +53,7 @@ main(int argc, char *argv[])
{
printf("1..11\n");
- assert(setlocale(LC_NUMERIC, ""));
+ assert(setlocale(LC_NUMERIC, "C"));
/*
* Basic tests of decimal output functionality.
@@ -144,7 +144,7 @@ main(int argc, char *argv[])
testfmt("1.234,00", "%'.2f", 1234.00);
testfmt("123.456,789", "%'.3f", 123456.789);
- assert(setlocale(LC_NUMERIC, ""));
+ assert(setlocale(LC_NUMERIC, "C"));
testfmt("12345678.062500", "%'f", 12345678.0625);
testfmt("9000.000000", "%'f", 9000.0);
OpenPOWER on IntegriCloud