When less a Japanese text file,letters get scrembled. so, if man man ,Japanese cant displayed properly
if JLESSCHARSET=japanese is exported,less can display Japanese properly. So,is it a problem of anaconda?
Does this problem still exist with the newest less rpm in dist/7.1 ? (rpm-358-14.i386.rpm)
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 is better to assign this bug)
This defect is considered MUST-FIX for Florence Release-Candidate #1
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?
also, ja_JP.eucJP works, so there is a bug in the less patch.
--- 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...
fixed.
Fixed.less can display Japanese text file properly.