Kaixo! On Tue, Jan 07, 2003 at 01:29:28PM -0500, Maiorana, Jason wrote: > > Under redhat 8.0, when running with > export LANG=ja_JP.UTF-8 > man pages are unreadable.
current groff (used by man) is only able to handle iso-8859-1 encoding, and a few extra typographic symbols (trough groff macros). It can't handle anything other. in ja_JP.EUC-JP you have the illusion that it works because groff is fooled to think the source is in iso-8859-1 and it has to be displayed as iso-8859-1 (so, withotu conversion). Now, when you use ja_JP.UTF-8 groff knows you want the output in UTF-8, but it still thinks the source is in iso-8859-1 (as it known nothing else); as a result, the output is unreadable. > Does anyone know what the most expedient way > is to make man pages readable under redhat 8 > for ja_JP.UTF-8 ? You can make a script like this #!/bin/bash LC_ALL=ja_JP.EUC-JP man "$@" | iconv -f euc-jp -t utf-8 | less it may work, but you may also have problems with the "bold" and "underlined" portions of text. A future version of groff will have real utf-8 capabilities, and then converting man pages soruces to utf-8 will solve the problem, for all languages. -- Ki �a vos v�ye b�n, Pablo Saratxaga http://chanae.walon.org/pablo/ PGP Key available, key ID: 0xD9B85466 [you can write me in Walloon, Spanish, French, English, Italian or Portuguese]
msg03775/pgp00000.pgp
Description: PGP signature
