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 */ _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"