Description of problem: man(1) doesn't output Japanese characters normally in ja_JP.eucJP locale. Version-Release number of selected component (if applicable): man-1.5m2-9 How reproducible: always Steps to Reproduce: 1. # export LANG=ja_JP.eucJP 2. set character encoding of terminal to Japanese EUC_JP. 3. # man ls Actual results: Japanese characters are garbled. Expected results: Japanese characters are output normally. Additional info:
nroff is responsible for converting from legacy encodings (i.e. EUC-JP) or UTF-8 to UTF-8. It does not currently convert to anything but UTF-8. At the time nroff was re-written to support this, we decided upwards compatibility (the ability to use old and third party man pages) written in non-Unicode was to be supported, but support for reverting a system backwards to operate in legacy encodings was not necessary. However, man has recently been modified to output its error messages in legacy as well as modern UTF-8, so we may want to re-think this. Anyway, component in the pipe chain that is responsible for converting the man page encoding is nroff, so changing component.
PAGER's problem seems to be the casue of this issue. nroff(1) seems to convert UTF-8 to the current locale encoding. So I change the value of 'PAGER' in /etc/man.config from '/usr/bin/less -iRs' to '/usr/bin/less -isr'. As a result, man(1) properly outputs mulit-byte characters encoded with EUC-JP. Could you change the value of PAGER in /etc/man.config?
Add RHEL4-L3support team in Japan
Refer to Issue 66087.