Fix latin1 guessing

Add koi8-r guessing
This commit is contained in:
Andrey A. Chernov 1996-09-11 17:55:20 +00:00
parent c6e29b8926
commit e81918b728
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18248
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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