unicode: check $LC_CTYPE too to detect Unicode mode

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/shell/ash.c b/shell/ash.c
index 90f2224..d696bbd 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -9659,6 +9659,7 @@
 		 */
 		{
 			const char *s = lookupvar("LC_ALL");
+			if (!s) s = lookupvar("LC_CTYPE");
 			if (!s) s = lookupvar("LANG");
 			reinit_unicode(s);
 		}
diff --git a/shell/hush.c b/shell/hush.c
index 1fa84dc..fc9b89b 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2045,6 +2045,7 @@
 		 * shell was started. Therefore, re-check LANG every time:
 		 */
 		const char *s = get_local_var_value("LC_ALL");
+		if (!s) s = get_local_var_value("LC_CTYPE");
 		if (!s) s = get_local_var_value("LANG");
 		reinit_unicode(s);