[Bug 226535] Merge Review: w3m

bugzilla at redhat.com bugzilla at redhat.com
Tue Mar 27 09:12:19 UTC 2007


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: Merge Review: w3m


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=226535





------- Additional Comments From mtasaka at ioa.s.u-tokyo.ac.jp  2007-03-27 05:12 EST -------
(In reply to comment #16)
> Mtasaka,
>     Can you help me in converting all the documents in doc-jp/ files from EUC-JP
> to UTF-8?
>      E.g. I tried following command to convert README to UTF-8
>  iconv -f ISO_8859-1 -t UTF-8 /usr/share/doc/w3m-0.5.1/doc-jp/README
> 
> Is that right?

Well, actually it is not ISO-8859-1, although "file" command
shows this (well, for Japanese documents, "file" command is
not useful...)

The following works for me.
-------------------------------------------------------
# Change encodings
pushd doc-jp
for f in * ; do
   case $f in
      README.pre_form | README.tab )
         CHARSET=ISO-2022-JP ;
         ;;
      keymap.* )
         CHARSET=UTF-8
         ;;
      * )
         CHARSET=EUC-JP
         ;;
    esac
    iconv -f $CHARSET -t UTF-8 $f > $f.tmp && \
      ( touch -r $f $f.tmp ; mv $f.tmp $f ) || rm -f $f.tmp
done
popd
------------------------------------------------------


-- 
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the package-review mailing list