From be986a9f95c23703e5a7063ecd74a9e393c06705 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 11 Sep 1996 17:55:20 +0000 Subject: Fix latin1 guessing Add koi8-r guessing --- contrib/groff/nroff/nroff.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'contrib/groff/nroff') diff --git a/contrib/groff/nroff/nroff.sh b/contrib/groff/nroff/nroff.sh index 5c6100e..05b953b 100755 --- a/contrib/groff/nroff/nroff.sh +++ b/contrib/groff/nroff/nroff.sh @@ -3,12 +3,18 @@ prog="$0" # Default device. -if test "X$LC_CTYPE" = "Xiso_8859_1" || test "X$LESSCHARSET" = "Xlatin1" +if test `expr "$LC_CTYPE" : ".*\.ISO_8859-1"` -gt 0 || \ + test `expr "$LANG" : ".*\.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" +then + T=-Tkoi8-r +else T=-Tascii fi +fi opts= for i -- cgit v1.1