unicode: check $LC_CTYPE too to detect Unicode mode
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -9659,6 +9659,7 @@ preadfd(void)
|
||||
*/
|
||||
{
|
||||
const char *s = lookupvar("LC_ALL");
|
||||
if (!s) s = lookupvar("LC_CTYPE");
|
||||
if (!s) s = lookupvar("LANG");
|
||||
reinit_unicode(s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user