Bug 159906 - less fails to view non-ascii characters in utf-8 encoding
less fails to view non-ascii characters in utf-8 encoding
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: less (Show other bugs)
3
All Linux
medium Severity low
: ---
: ---
Assigned To: Jindrich Novy
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-08 19:30 EDT by Ryan
Modified: 2013-07-02 19:07 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-08 07:37:29 EDT
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 Ryan 2005-06-08 19:30:19 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1

Description of problem:
By default FC3 system is set up to use utf-8 encoding, but the program "less" is not set up correctly by default. When viewing a text file with non-ascii characters, less gives garbage output.

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

How reproducible:
Always

Steps to Reproduce:
1.echo 哈哈 > test
2.less test
  

Actual Results:  <E5><93><88><E5><93><88>

Expected Results:  &#21704;&#21704;

Additional info:

Append a line to /etc/profile.d/less.sh will solve this problem in my case:
LESSCHARSET="utf-8"
Not sure about less.csh
Comment 1 Jindrich Novy 2005-07-04 06:01:45 EDT
Sorry, I cannot reproduce that with less-382-4 with LANG=en_US.UTF-8.
What's your value of LANG?
Comment 2 Ryan 2005-07-04 20:48:55 EDT
Sorry, I don't have access to that FC3 box any longer. Acording to what I 
remember, I'm using the default ( which should be en_US.UTF-8 ) with LC_CTYPE 
changed to zh_CN.UTF-8 ( set in /etc/sysconfig/i18n ). Notice that 
the "&#21704;" thing is one single Chinese character I typed in with SCIM 
input method but seems RH Bugzilla doesn't accept that. Is this miss leading 
you?
Comment 3 Jindrich Novy 2005-07-08 07:37:29 EDT
I had no problems testing less with the chinese characters with LANG=en_US.UTF-8
and LC_CTYPE=zh_CN.UTF-8 on my FC3 box. I saw the chinese characters perfectly
and still don't see anything bad with it so I'm closing this NOTABUG.

Please don't hesitate to reopen it if you find a better way how to reproduce it.

Thanks,
Jindrich

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