summaryrefslogtreecommitdiff
path: root/textproc/groff/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/groff/patches/patch-ab')
-rw-r--r--textproc/groff/patches/patch-ab38
1 files changed, 38 insertions, 0 deletions
diff --git a/textproc/groff/patches/patch-ab b/textproc/groff/patches/patch-ab
new file mode 100644
index 00000000000..05e14b188cb
--- /dev/null
+++ b/textproc/groff/patches/patch-ab
@@ -0,0 +1,38 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/05/14 14:08:09 wiz Exp $
+
+--- src/roff/nroff/nroff.sh.orig Sun May 28 23:46:42 2000
++++ src/roff/nroff/nroff.sh Fri May 4 18:28:24 2001
+@@ -5,14 +5,16 @@
+ # 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
+- UTF-8)
+- T=-Tutf8 ;;
+- ISO-8859-1)
+- T=-Tlatin1 ;;
+- IBM-1047)
+- T=-Tcp1047 ;;
+- *)
++# XXX: commented out because /bin/sh doesn't like not finding "locale",
++# and ignores the error redirection in this case.
++#case "`locale charmap 2>/dev/null`" in
++# UTF-8)
++# T=-Tutf8 ;;
++# ISO-8859-1)
++# T=-Tlatin1 ;;
++# IBM-1047)
++# T=-Tcp1047 ;;
++# *)
+ case "${LC_ALL-${LC_CTYPE-${LANG}}}" in
+ *.UTF-8)
+ T=-Tutf8 ;;
+@@ -31,7 +33,7 @@
+ *)
+ T=-Tascii ;;
+ esac ;;
+- esac ;;
++# esac ;;
+ esac
+ opts=
+ safer=-S