summaryrefslogtreecommitdiffstats
path: root/contrib/groff
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-06-22 10:41:47 +0000
committerru <ru@FreeBSD.org>2003-06-22 10:41:47 +0000
commit24be6cd03d9d535e5be6c82d0f1ba3891fbfd089 (patch)
treee108b7f00791fb6827613fd8c3f91479484d4384 /contrib/groff
parent64449e4a3abc188a05691c1a8750c62ced999fa0 (diff)
downloadFreeBSD-src-24be6cd03d9d535e5be6c82d0f1ba3891fbfd089.zip
FreeBSD-src-24be6cd03d9d535e5be6c82d0f1ba3891fbfd089.tar.gz
FreeBSD now has the locale(1) utility.
Diffstat (limited to 'contrib/groff')
-rwxr-xr-xcontrib/groff/src/roff/nroff/nroff.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/groff/src/roff/nroff/nroff.sh b/contrib/groff/src/roff/nroff/nroff.sh
index 45c178c..51da1ac 100755
--- a/contrib/groff/src/roff/nroff/nroff.sh
+++ b/contrib/groff/src/roff/nroff/nroff.sh
@@ -6,13 +6,15 @@ prog="$0"
# Default device.
# First try the "locale charmap" command, because it's most reliable.
# On systems where it doesn't exist, look at the environment variables.
-case "`#locale charmap 2>/dev/null`" in
+case "`locale charmap 2>/dev/null`" in
UTF-8)
T=-Tutf8 ;;
- ISO-8859-1)
+ ISO*8859-1 | ISO*8859-15)
T=-Tlatin1 ;;
IBM-1047)
T=-Tcp1047 ;;
+ KOI8-R)
+ T=-Tkoi8-r ;;
*)
case "${LC_ALL-${LC_CTYPE-${LANG}}}" in
*.UTF-8)
OpenPOWER on IntegriCloud