rename utf8-hack to utf8-mode (use set -U or set +U instead, anyway)
and announce less hackish things
This commit is contained in:
8
main.c
8
main.c
@ -13,7 +13,7 @@
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.114 2008/11/30 10:33:39 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.115 2008/12/04 18:11:06 tg Exp $");
|
||||
|
||||
extern char **environ;
|
||||
|
||||
@ -311,7 +311,7 @@ main(int argc, const char *argv[])
|
||||
#define isuc(x) (((x) != NULL) && \
|
||||
(stristr((x), "UTF-8") || stristr((x), "utf8")))
|
||||
/* Check if we're in a UTF-8 locale */
|
||||
if (!Flag(FUTFHACK)) {
|
||||
if (!UTFMODE) {
|
||||
const char *ccp;
|
||||
|
||||
#if HAVE_SETLOCALE_CTYPE
|
||||
@ -328,11 +328,11 @@ main(int argc, const char *argv[])
|
||||
ccp = getenv("LANG");
|
||||
}
|
||||
#endif
|
||||
Flag(FUTFHACK) = isuc(ccp);
|
||||
UTFMODE = isuc(ccp);
|
||||
}
|
||||
#undef isuc
|
||||
#else
|
||||
Flag(FUTFHACK) = 1;
|
||||
UTFMODE = 1;
|
||||
#endif
|
||||
x_init();
|
||||
}
|
||||
|
Reference in New Issue
Block a user