Bug 26113 - less can't properly display Japanese doc
less can't properly display Japanese doc
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: less (Show other bugs)
7.1
i386 Linux
high Severity high
: ---
: ---
Assigned To: Matt Wilson
Aaron Brown
Florence RC-1
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-02-05 12:38 EST by Bill Huang
Modified: 2005-10-31 17:00 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-02-07 13:56:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bill Huang 2001-02-05 12:38:04 EST
When less a Japanese text file,letters get scrembled.
so, if man man ,Japanese cant displayed properly
Comment 1 Bill Huang 2001-02-05 13:04:13 EST
if JLESSCHARSET=japanese is exported,less can display Japanese properly.
So,is it a problem of anaconda?
Comment 2 Karsten Hopp 2001-02-05 13:25:30 EST
Does this problem still exist with the newest less rpm in dist/7.1 ?
 (rpm-358-14.i386.rpm)
Comment 3 Nakai 2001-02-05 13:45:00 EST
This is because anaconda sets LANG=ja_JP.eucjp at install,
and bashrc set JLESSCHARSET=japanese only when LANG=ja or LANG=ja_JP.eucjp.

When I set JLESSCHARSE=japanese manually, it works.

It is an anaconda problem, so it's not less problem.
(msw@redhat.com is better to assign this bug)
Comment 4 Glen Foster 2001-02-05 17:58:03 EST
This defect is considered MUST-FIX for Florence Release-Candidate #1
Comment 5 Matt Wilson 2001-02-05 18:05:11 EST
LANG=ja_JP.eucjp less /mnt/redhat/comps/dist/7.1/READMES/i386/RELEASE-NOTES.ja
does not work
LANG=en_US less /mnt/redhat/comps/dist/7.1/READMES/i386/RELEASE-NOTES.ja *works*
Why is this?
Comment 6 Matt Wilson 2001-02-05 18:11:30 EST
also, ja_JP.eucJP works, so there is a bug in the less patch.
Comment 7 Matt Wilson 2001-02-05 18:16:25 EST
--- less-358+iso247-20001210.diff~      Sun Dec 10 02:53:55 2000
+++ less-358+iso247-20001210.diff       Mon Feb  5 17:20:04 2001
@@ -355,7 +355,7 @@
 +              name = getenv("LANG");
 +      for (p = charlocales; name && p->name != NULL; p++)
 +      {
-+              if (strcmp(name, p->name) == 0)
++              if (strcasecmp(name, p->name) == 0)
 +              {
 +                      (void) icharset(p->charset);
 +                      return;


rebuilding...
Comment 8 Matt Wilson 2001-02-07 13:56:20 EST
fixed.
Comment 9 Bill Huang 2001-02-07 14:52:15 EST
Fixed.less can display Japanese text file properly.

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