POSIX.2 utilities must call setlocale(LC_ALL, "");
This commit is contained in:
parent
cd816f9f1e
commit
404b36ffd9
5
usr.bin/env/env.c
vendored
5
usr.bin/env/env.c
vendored
@ -39,12 +39,13 @@ char copyright[] =
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)env.c 5.3 (Berkeley) 6/1/90";*/
|
||||
static char rcsid[] = "$Id: env.c,v 1.5 1993/11/10 20:06:00 jtc Exp $";
|
||||
static char rcsid[] = "$Id: env.c,v 1.6 1993/11/19 20:06:41 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <locale.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <err.h>
|
||||
@ -62,6 +63,8 @@ main(argc, argv)
|
||||
char *cleanenv[1];
|
||||
int ch;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
while ((ch = getopt(argc, argv, "-i")) != -1)
|
||||
switch((char)ch) {
|
||||
case '-': /* obsolete */
|
||||
|
Loading…
Reference in New Issue
Block a user