svn commit: r216424 - head/usr.bin/printf
Xin LI
delphij at FreeBSD.org
Tue Dec 14 01:28:34 UTC 2010
Author: delphij
Date: Tue Dec 14 01:28:33 2010
New Revision: 216424
URL: http://svn.freebsd.org/changeset/base/216424
Log:
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
Modified:
head/usr.bin/printf/printf.c
Modified: head/usr.bin/printf/printf.c
==============================================================================
--- head/usr.bin/printf/printf.c Tue Dec 14 01:16:56 2010 (r216423)
+++ head/usr.bin/printf/printf.c Tue Dec 14 01:28:33 2010 (r216424)
@@ -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 */
More information about the svn-src-head
mailing list