Bug 142351 - man(1) doesn't output Japanese characters normally in ja_JP.eucJP.
Summary: man(1) doesn't output Japanese characters normally in ja_JP.eucJP.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: man
Version: 4.0
Hardware: ia64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Thomas Woerner
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-09 06:41 UTC by L3support
Modified: 2010-10-22 02:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-21 08:06:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description L3support 2004-12-09 06:41:56 UTC
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:

Comment 1 Eido Inoue 2004-12-10 19:45:42 UTC
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.

Comment 2 L3support 2004-12-21 09:03:20 UTC
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?

Comment 3 RHEL4-L3support 2005-01-19 02:10:20 UTC
Add RHEL4-L3support team in Japan

Comment 6 L3support 2005-02-24 07:40:12 UTC
Refer to Issue 66087.



Note You need to log in before you can comment on or make changes to this bug.