diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-07-04 13:27:49 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-07-04 13:27:49 +0000 |
commit | 154d55bba27835de7a914ba2422bfcd28443ae84 (patch) | |
tree | c93411f6b75dfdc7440fbd0222e20348697cc373 /tests/tprintf.c | |
parent | 16e22a17969895852ad508b17f7c1d5c1a70d88b (diff) | |
download | mpfr-154d55bba27835de7a914ba2422bfcd28443ae84.tar.gz |
[tests/tprintf.c] More test_locale() cleanup.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12879 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r-- | tests/tprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c index 504ada49e..f6047685f 100644 --- a/tests/tprintf.c +++ b/tests/tprintf.c @@ -490,12 +490,13 @@ test_locale (void) "en_US.utf8" }; int i; - char *s = NULL; mpfr_t x; int count; for (i = 0; i < numberof(tab_locale); i++) { + char *s; + s = setlocale (LC_ALL, tab_locale[i]); if (s != NULL && MPFR_THOUSANDS_SEPARATOR == ',') |