get rid of "U getenv"
This commit is contained in:
parent
1dfb13b603
commit
b50b43e3bf
14
main.c
14
main.c
@ -33,7 +33,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.147 2009/09/24 17:15:31 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.148 2009/09/26 01:08:27 tg Exp $");
|
||||||
|
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
|
||||||
@ -352,12 +352,12 @@ main(int argc, const char *argv[])
|
|||||||
ccp = nl_langinfo(CODESET);
|
ccp = nl_langinfo(CODESET);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
ccp = getenv("LC_ALL");
|
/* these were imported from environ earlier */
|
||||||
if (!ccp || !*ccp) {
|
ccp = str_val(global("LC_ALL"));
|
||||||
ccp = getenv("LC_CTYPE");
|
if (ccp == null)
|
||||||
if (!ccp || !*ccp)
|
ccp = str_val(global("LC_CTYPE"));
|
||||||
ccp = getenv("LANG");
|
if (ccp == null)
|
||||||
}
|
ccp = str_val(global("LANG"));
|
||||||
#endif
|
#endif
|
||||||
UTFMODE = isuc(ccp);
|
UTFMODE = isuc(ccp);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user