diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2003-06-22 10:41:47 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2003-06-22 10:41:47 +0000 |
commit | 76e16c7155f35ea799cea40d4998d6599f6bb1cd (patch) | |
tree | e108b7f00791fb6827613fd8c3f91479484d4384 /contrib/groff/src | |
parent | 9c96ff4d54f76cb8916ed241417aa4cfee275791 (diff) | |
download | src-76e16c7155f35ea799cea40d4998d6599f6bb1cd.tar.gz src-76e16c7155f35ea799cea40d4998d6599f6bb1cd.zip |
FreeBSD now has the locale(1) utility.
Notes
Notes:
svn path=/head/; revision=116681
Diffstat (limited to 'contrib/groff/src')
-rwxr-xr-x | contrib/groff/src/roff/nroff/nroff.sh | 6 |
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 45c178c02f4c..51da1ac3e972 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) |