From 69be0c5ea2b6ad70935c3654873f5b99f311a859 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Tue, 14 Dec 2010 01:28:33 +0000 Subject: [PATCH] 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 Obtained from: Illumos --- usr.bin/printf/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index 115185573f48..451b15b1a42e 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 */