diff options
author | ru <ru@FreeBSD.org> | 2003-11-02 07:25:24 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-11-02 07:25:24 +0000 |
commit | 99d648cb98d550b676068c05130023319b35841f (patch) | |
tree | de993572a31f6a85307b1f2c168fc7159692ad40 /contrib/groff | |
parent | f23ce1b908c8bbc65a8c67dae4733a34693c5df1 (diff) | |
download | FreeBSD-src-99d648cb98d550b676068c05130023319b35841f.zip FreeBSD-src-99d648cb98d550b676068c05130023319b35841f.tar.gz |
Sort encodings.
Diffstat (limited to 'contrib/groff')
-rwxr-xr-x | contrib/groff/src/roff/nroff/nroff.sh | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/contrib/groff/src/roff/nroff/nroff.sh b/contrib/groff/src/roff/nroff/nroff.sh index 51da1ac..3127593 100755 --- a/contrib/groff/src/roff/nroff/nroff.sh +++ b/contrib/groff/src/roff/nroff/nroff.sh @@ -7,30 +7,32 @@ prog="$0" # 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 - UTF-8) - T=-Tutf8 ;; ISO*8859-1 | ISO*8859-15) T=-Tlatin1 ;; - IBM-1047) - T=-Tcp1047 ;; KOI8-R) T=-Tkoi8-r ;; + UTF-8) + T=-Tutf8 ;; + IBM-1047) + T=-Tcp1047 ;; *) case "${LC_ALL-${LC_CTYPE-${LANG}}}" 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 ;; + *.UTF-8) + T=-Tutf8 ;; + *.IBM-1047) + T=-Tcp1047 ;; *) case "$LESSCHARSET" in - utf-8) - T=-Tutf8 ;; latin1) T=-Tlatin1 ;; + koi8-r) + T=-Tkoi8-r ;; + utf-8) + T=-Tutf8 ;; cp1047) T=-Tcp1047 ;; *) |