summaryrefslogtreecommitdiff
path: root/textproc/groff/patches/patch-ab
blob: defabc6e54505ada1c8bea47ddf5ee397263c17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$NetBSD: patch-ab,v 1.2 2003/01/04 11:20:14 wiz Exp $

--- src/roff/nroff/nroff.sh.orig	Thu Feb  7 09:36:54 2002
+++ src/roff/nroff/nroff.sh
@@ -5,14 +5,16 @@ 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
-  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=