Subject: bin/29114: Allow nroff to recognize ISO8859-1 (in Addition to ISO-8859-1)
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <netbsd@wolfnode.de>
List: netbsd-bugs
Date: 01/25/2005 10:51:00
>Number:         29114
>Category:       bin
>Synopsis:       Allow nroff to recognize ISO8859-1 (in Addition to ISO-8859-1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 25 10:51:00 +0000 2005
>Originator:     Florian Stöhr
>Release:        current
>Organization:
n/a
>Environment:
n/a
>Description:
/usr/bin/nroff recognizes german umlauts if LC_CTYPE, LC_ALL or LANG contain "ISO-8859-1". However (at least if bash installed), out language files are called e.g. "de_DE.ISO8859-1" - so without the "-" after the ISO.

-> nroff will not recognize to convert umlauts correctly under this environment (if no -Tlatin1 is given of course).
>How-To-Repeat:
cat > test.txt
öäü
nroff test.txt
>Fix:
Index: gnu/dist/groff/src/roff/nroff/nroff.sh
===================================================================
RCS file: /cvsroot/src/gnu/dist/groff/src/roff/nroff/nroff.sh,v
retrieving revision 1.3
diff -u -r1.3 nroff.sh
--- gnu/dist/groff/src/roff/nroff/nroff.sh	30 Jul 2004 14:56:51 -0000	1.3
+++ gnu/dist/groff/src/roff/nroff/nroff.sh	25 Jan 2005 10:45:07 -0000
@@ -16,7 +16,7 @@
     case "${LC_ALL-${LC_CTYPE-${LANG}}}" in
       *.UTF-8)
         T=-Tutf8 ;;
-      iso_8859_1 | *.ISO-8859-1)
+      iso_8859_1 | *.ISO-8859-1 | *.ISO8859-1)
         T=-Tlatin1 ;;
       *.IBM-1047)
         T=-Tcp1047 ;;