summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-12-12 09:07:04 +0100
committerWerner Koch <wk@gnupg.org>2018-12-12 09:14:31 +0100
commit12349de46d241cfbadbdf99773d6cabfcbc97578 (patch)
treeb484e5bf0de8ea9889e67232b5a18252b99bc89c /tests
parent27ded21fea2a6f1fc161a91744014cce711ad1b3 (diff)
downloadlibgpg-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.c3
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);