mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 23:57:54 +01:00
Fix latin1 guessing
Add koi8-r guessing
This commit is contained in:
parent
c6e29b8926
commit
e81918b728
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18248
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user