blob: 05e14b188cb4583a9cea34e2ee22497fa85a350a (
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.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
|