summaryrefslogtreecommitdiffstats
path: root/usr.bin/printf
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-12-14 01:28:33 +0000
committerdelphij <delphij@FreeBSD.org>2010-12-14 01:28:33 +0000
commite89450cac9b4b8c31d12491f35c09ec7af9ac345 (patch)
treee1bd6ff1b3bbb861560faba481433bcd750628a5 /usr.bin/printf
parentdc620e69a5f031d9bbf327f3f7afaff2e3ade62f (diff)
downloadFreeBSD-src-e89450cac9b4b8c31d12491f35c09ec7af9ac345.zip
FreeBSD-src-e89450cac9b4b8c31d12491f35c09ec7af9ac345.tar.gz
We work on ctype's and not only on numbers so set LC_ALL instead of
LC_NUMERIC. PR: bin/152934 Submitted by: Pedro F. Giffuni <giffunip tutopia.com> Obtained from: Illumos
Diffstat (limited to 'usr.bin/printf')
-rw-r--r--usr.bin/printf/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c
index 1151855..451b15b 100644
--- a/usr.bin/printf/printf.c
+++ b/usr.bin/printf/printf.c
@@ -106,7 +106,7 @@ main(int argc, char *argv[])
char *format, *fmt, *start;
#ifndef SHELL
- (void) setlocale(LC_NUMERIC, "");
+ (void) setlocale(LC_ALL, "");
#endif
#ifdef SHELL
optreset = 1; optind = 1; opterr = 0; /* initialize getopt */
OpenPOWER on IntegriCloud