diff options
author | Werner Koch <wk@gnupg.org> | 2018-12-12 09:07:04 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-12-12 09:14:31 +0100 |
commit | 12349de46d241cfbadbdf99773d6cabfcbc97578 (patch) | |
tree | b484e5bf0de8ea9889e67232b5a18252b99bc89c /tests | |
parent | 27ded21fea2a6f1fc161a91744014cce711ad1b3 (diff) | |
download | libgpg-error-12349de46d241cfbadbdf99773d6cabfcbc97578.tar.gz |
estream: Use correct POSIX name THOUSEP.
* src/estream-printf.c: Replace HAVE_LANGINFO_THOUSANDS_SEP by
HAVE_LANGINFO_THOUSEP.
(pr_integer): Use THOUSEP.
--
GnuPG-bug-id: 4286
Reported-by: miod
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/t-printf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/t-printf.c b/tests/t-printf.c index 1e4d393..c261838 100644 --- a/tests/t-printf.c +++ b/tests/t-printf.c @@ -201,6 +201,9 @@ run_tests (void) one_test_2 ("%d %% %d", 17, 768114563); one_test_2 ("%d %% %d", 17, -768114563); + /* Checking thousands is not easy because it depends on the locale. */ + /* one_test_1 ("%'d", 768114563); */ + one_test_1 ("%d", 17); one_test_1 ("%4d", 17); one_test_1 ("%40d", 17); |