summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/groff/nroff/nroff.sh3
-rwxr-xr-xcontrib/groff/src/roff/nroff/nroff.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/contrib/groff/nroff/nroff.sh b/contrib/groff/nroff/nroff.sh
index 05b953b..02cd72f 100755
--- a/contrib/groff/nroff/nroff.sh
+++ b/contrib/groff/nroff/nroff.sh
@@ -8,7 +8,8 @@ if test `expr "$LC_CTYPE" : ".*\.ISO_8859-1"` -gt 0 || \
then
T=-Tlatin1
else
-if test "X$LC_CTYPE" = "Xru_SU.KOI8-R" || test "X$LANG" = "Xru_SU.KOI8-R"
+if test `expr "$LC_CTYPE" : ".*\.KOI8-R"` -gt 0 || \
+ test `expr "$LANG" : ".*\.KOI8-R"` -gt 0
then
T=-Tkoi8-r
else
diff --git a/contrib/groff/src/roff/nroff/nroff.sh b/contrib/groff/src/roff/nroff/nroff.sh
index 05b953b..02cd72f 100755
--- a/contrib/groff/src/roff/nroff/nroff.sh
+++ b/contrib/groff/src/roff/nroff/nroff.sh
@@ -8,7 +8,8 @@ if test `expr "$LC_CTYPE" : ".*\.ISO_8859-1"` -gt 0 || \
then
T=-Tlatin1
else
-if test "X$LC_CTYPE" = "Xru_SU.KOI8-R" || test "X$LANG" = "Xru_SU.KOI8-R"
+if test `expr "$LC_CTYPE" : ".*\.KOI8-R"` -gt 0 || \
+ test `expr "$LANG" : ".*\.KOI8-R"` -gt 0
then
T=-Tkoi8-r
else
OpenPOWER on IntegriCloud