summaryrefslogtreecommitdiffstats
path: root/nroff
diff options
context:
space:
mode:
Diffstat (limited to 'nroff')
-rw-r--r--nroff9
1 files changed, 3 insertions, 6 deletions
diff --git a/nroff b/nroff
index 5588a4f..49a71bc 100644
--- a/nroff
+++ b/nroff
@@ -4,8 +4,7 @@
prog="$0"
charset_in=iso-8859-1
charset_out=`locale charmap 2>/dev/null`
-opts=
-othercoding=0
+opts="-mtty-char -Tutf8"
# Default device.
# First try the "locale charmap" command, because it's most reliable.
@@ -51,6 +50,7 @@ case "`locale charmap 2>/dev/null`" in
esac ;;
esac
+
for i
do
case $1 in
@@ -67,7 +67,7 @@ do
-[iptSUC] | -[mrno]*)
opts="$opts $1" ;;
-Tascii | -Tlatin1 | -Tutf8 | -Tcp1047 | -Tascii8 | -Tnippon | -Tkorean)
- othercoding=1
+ opts=
T=$1 ;;
-T*)
# ignore other devices
@@ -120,9 +120,6 @@ export LC_ALL=en_US.UTF-8
# This shell script is intended for use with man, so warnings are
# probably not wanted. Also load nroff-style character definitions.
-if [ "$othercoding" == 0 ]; then
- opts="-mtty-char -Tutf8"
-fi
if [ $charset_in = utf-8 -a $charset_out = UTF-8 ]; then
if [ $TMPFILE = buf ]; then