Bug 1146811

Summary: less fails to display some UTF-8 characters properly
Product: [Fedora] Fedora Reporter: Marko Myllynen <myllynen>
Component: lessAssignee: Jozef Mlich <jmlich>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: hhorak, jmlich, lnie
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: less-471-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-10 11:56:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1074489    
Bug Blocks:    

Description Marko Myllynen 2014-09-26 06:46:11 UTC
Description of problem:
less fails to display some UTF-8 characters properly while e.g. emacs and vim do not have issues with them.

Version-Release number of selected component (if applicable):
less-458-13.fc21

How reproducible:
Always

Steps to Reproduce:
1. echo $'\u20bd' > a
2. less a

Actual results:
less shows a character code in place of the character.

Expected results:
less shows the character properly.

Additional information:
There are some other characters in /usr/lib/kbd/consolefonts/README.eurlatgr which are having the same issue but are older than U+20BD (which is part of Unicode 7.0.0).

Comment 1 Jozef Mlich 2014-09-29 07:38:28 UTC
Recently, upstream developer Mark Nudelman reworked construction of Unicode tables from Unicode database. This change is available in less 466 or newer. However, it is still in beta phase. 

I have prepared the COPR repository with most recent less version for testing purposes. See https://copr.fedoraproject.org/coprs/jmlich/playground/builds/. In my opinion, it is not very wise to push this into fedora right now. 

If you really need that function, please prepare patch similar to patch provided in #1074489. Otherwise, please wait to next release of less or use package from COPR repository.

Comment 2 Fedora Update System 2015-01-05 09:09:13 UTC
less-471-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/less-471-1.fc21

Comment 3 Fedora Update System 2015-01-06 06:05:36 UTC
Package less-471-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing less-471-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-0188/less-471-1.fc21
then log in and leave karma (feedback).

Comment 4 lnie 2015-01-06 06:07:47 UTC
less-471-1.fc21 works

Comment 5 Fedora Update System 2015-01-10 11:56:44 UTC
less-471-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.