[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-devel:12487] [fpolacco@debian.org: Installed groff 1.16-0 (source i386)]



Hi, I have checked it.

> In article <[🔎] 20000615144232.B8077@none>,
>   at Thu, 15 Jun 2000 21:38:09 +0900,
>     on [debian-devel:12487] [fpolacco@debian.org: Installed groff 1.16-0 (source i386)],
>  Fabrizio Polacco <fpolacco@debian.org> writes:
> 
> > Please TEST it! Please, asian friends, try to use it and report all and
> > any bugs you even "imagine" you've seen.
> > I want to submit the patch upstream, but I don't want to submit the
> > patch if it is buggy, and I'm anyway in a hurry, as the upstream tree is
> > again changing.

 nroff cancels "-T" option when specified other than ascii, latin1, utf8, cp1047.

This is written in groff-1.16/src/roff/nroff/nroff.sh

for i; do
  case $1 in
(clip)
    -Tascii | -Tlatin1 | -Tutf8 | -Tcp1047)
      T=$1 ;;
    -T*)
      # ignore other devices
      ;;

 man-db uses "nroff -Tnippon" when I do "LANG=ja_JP.ujis man ls", 
but this "-Tnippon" is cancelled by /usr/bin/nroff. 
groff itself can accept the option, so "man -Tnippon" is ok 
because it uses "groff -Tnippon".

I don't know why nroff.sh cancels the specified options
(maybe security concerns ?) but man nroff shows

       The  -T  option with an argument other than ascii, ascii8,
       latin1, utf8, nippon, or cp1047 will be ignored.

so at least both ascii8 and nippon should be accepted, I think.

Patch is here:

--- nroff.sh.orig	Fri Jun 16 12:21:14 2000
+++ nroff.sh	Fri Jun 16 12:33:05 2000
@@ -12,6 +12,8 @@
     T=-Tlatin1 ;;
   IBM-1047)
     T=-Tcp1047 ;;
+  EUC-JP)
+    T=-Tnippon ;;
   *)
     case "${LC_ALL-${LC_CTYPE-${LANG}}}" in
       *.UTF-8)
@@ -20,6 +22,8 @@
         T=-Tlatin1 ;;
       *.IBM-1047)
         T=-Tcp1047 ;;
+      ja_JP.ujis | ja_JP.eucJP)
+	T=-Tnippon ;;
       *)
         case "$LESSCHARSET" in
           utf-8)
@@ -28,6 +32,8 @@
             T=-Tlatin1 ;;
           cp1047)
             T=-Tcp1047 ;;
+          japanese)
+	    T=-Tnippon ;;
           *)
             T=-Tascii ;;
           esac ;;
@@ -48,7 +54,7 @@
       exit 1 ;;
     -i | -[mrno]*)
       opts="$opts $1" ;;
-    -Tascii | -Tlatin1 | -Tutf8 | -Tcp1047)
+    -Tascii | -Tlatin1 | -Tutf8 | -Tcp1047 | -Tascii8 | -Tnippon)
       T=$1 ;;
     -T*)
       # ignore other devices


I will check other things later. Thanks.

-- 
  Taketoshi Sano: <kgh12351@nifty.ne.jp>



Reply to: