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
This commit is contained in:
parent
02a4a3f56c
commit
69be0c5ea2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216424
@ -106,7 +106,7 @@ main(int argc, char *argv[])
|
|||||||
char *format, *fmt, *start;
|
char *format, *fmt, *start;
|
||||||
|
|
||||||
#ifndef SHELL
|
#ifndef SHELL
|
||||||
(void) setlocale(LC_NUMERIC, "");
|
(void) setlocale(LC_ALL, "");
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHELL
|
#ifdef SHELL
|
||||||
optreset = 1; optind = 1; opterr = 0; /* initialize getopt */
|
optreset = 1; optind = 1; opterr = 0; /* initialize getopt */
|
||||||
|
Loading…
Reference in New Issue
Block a user