summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Jürgen Sauermann <mail@xn--jrgen-sauermann-zvb.de>2022-07-19 16:54:46 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-07-19 16:56:10 +0200
commit990dc2e94d05dc056f56764cf3decdc478aa7782 (patch)
treee8c1bc7054d483bba5564773de3039b78d0a65d6
parent917068a826b1d137827afc8728c0e841773668cb (diff)
printf.3: Note about thousands grouping and the C locale
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--man3/printf.35
1 files changed, 5 insertions, 0 deletions
diff --git a/man3/printf.3 b/man3/printf.3
index e7cd6222b..0fb54bc5a 100644
--- a/man3/printf.3
+++ b/man3/printf.3
@@ -382,6 +382,11 @@ Note that many versions of
cannot parse this option and will issue a warning.
(SUSv2 did not
include \fI%\(aqF\fP, but SUSv3 added it.)
+Note also that the default locale of a C program is "C"
+whose locale information indicates no thousands' grouping character.
+Therefore, without a prior call to
+.BR setlocale (3),
+no thousands' grouping characters will be printed.
.PP
glibc 2.2 adds one further flag character.
.TP