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 */