summaryrefslogtreecommitdiffstats
path: root/contrib/groff/nroff
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/nroff')
-rwxr-xr-xcontrib/groff/nroff/nroff.sh3
1 files changed, 2 insertions, 1 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
OpenPOWER on IntegriCloud