warn when entering POSuX noncompliance
This commit is contained in:
5
main.c
5
main.c
@ -34,7 +34,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.346 2018/01/13 21:38:08 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.347 2018/01/13 21:45:07 tg Exp $");
|
||||||
|
|
||||||
#ifndef MKSHRC_PATH
|
#ifndef MKSHRC_PATH
|
||||||
#define MKSHRC_PATH "~/.mkshrc"
|
#define MKSHRC_PATH "~/.mkshrc"
|
||||||
@ -2071,5 +2071,8 @@ recheck_ctype(void)
|
|||||||
if (isuc(ccp))
|
if (isuc(ccp))
|
||||||
UTFMODE = 1;
|
UTFMODE = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (Flag(FPOSIX))
|
||||||
|
warningf(true, "early locale tracking enabled UTF-8 mode while in POSIX mode, you are now noncompliant");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user