aboutsummaryrefslogtreecommitdiffstats
path: root/src/estream-printf.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-12-12 09:07:04 +0100
committerWerner Koch <[email protected]>2018-12-12 09:14:31 +0100
commit12349de46d241cfbadbdf99773d6cabfcbc97578 (patch)
treeb484e5bf0de8ea9889e67232b5a18252b99bc89c /src/estream-printf.c
parentsyscfg: Add a riscv32 architecture (diff)
downloadlibgpg-error-12349de46d241cfbadbdf99773d6cabfcbc97578.tar.gz
libgpg-error-12349de46d241cfbadbdf99773d6cabfcbc97578.zip
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 <[email protected]>
Diffstat (limited to 'src/estream-printf.c')
-rw-r--r--src/estream-printf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/estream-printf.c b/src/estream-printf.c
index b9775a6..2171409 100644
--- a/src/estream-printf.c
+++ b/src/estream-printf.c
@@ -60,14 +60,14 @@
AC_CHECK_TYPES([ptrdiff_t]) defines HAVE_PTRDIFF_T
AC_CHECK_SIZEOF([unsigned long]) defines SIZEOF_UNSIGNED_LONG
AC_CHECK_SIZEOF([void *]) defines SIZEOF_VOID_P
- HAVE_LANGINFO_THOUSANDS_SEP
+ HAVE_LANGINFO_THOUSEP
Note that the file estream.m4 provides the autoconf macro
ESTREAM_PRINTF_INIT which runs all required checks.
See estream-printf.h for ways to tune this code.
Missing stuff: wchar and wint_t
- thousands_sep in pr_float.
+ thousep in pr_float.
*/
@@ -95,7 +95,7 @@
# include <stdint.h>
# endif
#endif
-#ifdef HAVE_LANGINFO_THOUSANDS_SEP
+#ifdef HAVE_LANGINFO_THOUSEP
#include <langinfo.h>
#endif
#ifdef HAVE_W32CE_SYSTEM
@@ -936,8 +936,8 @@ pr_integer (estream_printf_out_t outfnc, void *outfncarg,
{
int grouping = -1;
const char * grouping_string =
-#ifdef HAVE_LANGINFO_THOUSANDS_SEP
- nl_langinfo(THOUSANDS_SEP);
+#ifdef HAVE_LANGINFO_THOUSEP
+ nl_langinfo(THOUSEP);
#else
"'";
#endif