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: 哈哈 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
Sorry, I cannot reproduce that with less-382-4 with LANG=en_US.UTF-8. What's your value of LANG?
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 "哈" 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?
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