Bug 103493 - less.sh/less.csh should not set JLESSCHARSET for UTF-8 locales
less.sh/less.csh should not set JLESSCHARSET for UTF-8 locales
Product: Red Hat Linux
Classification: Retired
Component: less (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jindrich Novy
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-09-01 02:57 EDT by Jungshik Shin
Modified: 2013-07-02 18:58 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-19 05:35:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jungshik Shin 2003-09-01 02:57:36 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701

Description of problem:

I use ko_KR.UTF-8 locale and found that all Korean characters were turned by
less to '&&&' after upgrading to RH 9.0. It turned out that
/etc/profile.d/less.sh set JLESSCHARSET to 'ko' for any ko* locale. I changed
the script not to set it if I'm running in UTF-8 locale and it works fine. A
similar fix is necessary for /etc/profile.d/less.csh

I don't know whether RH 9.0 supports UTF-8 locales for CJK. I had used  my own
CJK locales for RH 8.0 before upgrading to RH 9.0 and I didn't bother to check
if RH 9.0 came with CJK UTF-8 locales. If it still uses legacy codeset t for
CJK, it's very much disappointing. Anyway, in that case, this bug would be invalid. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.set LC_ALL to ko_KR.UTF-8 or ja_JP.UTF-8
2.spawn a new shell or a new terminal 
3.try to view any UTF-8 files (with non-ASCII characters) 
with less


Actual Results:  All non-ascii characters are turned to &'s

Expected Results:  Non-ascii characters should be displayed

Additional info:
Comment 1 Jungshik Shin 2003-09-01 03:00:45 EDT
see also bug 88868 comment #5
Comment 2 Karsten Hopp 2003-09-01 10:32:00 EDT
The current less.[c]sh files parse the LC_ALL and LANG variables differently 
Comment 3 Jungshik Shin 2003-09-01 10:55:44 EDT
Does it check LC_CTYPE as well? It has to.
Comment 4 Jindrich Novy 2005-10-19 05:35:17 EDT
This works for me with the current less.

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