Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2010 01:28:34 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216424 - head/usr.bin/printf
Message-ID:  <201012140128.oBE1SYKd099412@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012140128.oBE1SYKd099412>