$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
