Bug 746506

Summary: luit cp866 encoding mentioned in man but does not working
Product: [Fedora] Fedora Reporter: Pavel Alexeev <pahan>
Component: xorg-x11-appsAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: mcepl, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-17 08:00:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Alexeev 2011-10-16 17:24:17 UTC
Description of problem:
Luit mention cp866 in supported encodings:
$ luit -list | grep 866
  CP 866

But in fact i does not working:
# localedef -i ru_RU -f IBM866 ru_RU.cp866

$ LANG=ru_RU.cp866 luit -encoding 'CP 866' -v ./cp866.app
Warning: couldn't find charset data for locale CP 866; using ISO 8859-1.
G0 is ASCII, G1 is Unknown (94), G2 is ISO 8859-1, G3 is Unknown (94).
GL is G0, GR is G2.
Test.

cp866.app consist from single line:
echo "Test. Русский текст для теста" | iconv -f utf-8 -t CP866

Version-Release number of selected component (if applicable):
$ rpm -q xorg-x11-apps 
xorg-x11-apps-7.6-2.fc15.x86_64

How reproducible:
Always

Comment 1 Pavel Alexeev 2011-10-16 17:32:35 UTC
$ luit -encoding 'CP 866' -v ./cp866.app
Warning: couldn't find charset data for locale CP 866; using ISO 8859-1.
G0 is ASCII, G1 is Unknown (94), G2 is ISO 8859-1, G3 is Unknown (94).
GL is G0, GR is G2.
Test.

Comment 2 Pavel Alexeev 2011-10-16 18:23:21 UTC
And I have not found official bugtracker for luit. So, found there patch http://gentoo.ru/node/9440 (page on Russian) may help. I have test it, but until cant't fix issue. So, may be for others it do more.

Comment 3 Matěj Cepl 2011-10-17 08:00:04 UTC
We filed this bug in the upstream database (https://bugs.freedesktop.org/show_bug.cgi?id=41857) and believe that it is more appropriate to let it be resolved upstream.

We will continue to track the issue in the centralized upstream bug tracker, and will review any bug fixes that become available for consideration in future updates.

However, I would also note the headline of the list where CP 866 is mentioned:

"Known charsets (not all may be available):"

We would strongly encourage you to subscribe to the upstream bug as well (by logging in and adding yourself to the Cc list), so that you can provide whatever information required for the successful resolving of this issue.

Thank you for helping to make free software better.

Comment 4 Pavel Alexeev 2011-10-20 19:19:58 UTC
Ok, thank you, Matěj Cepl.
I'll subscribe to upstream bug shortly.

Comment 5 Pavel Alexeev 2012-10-16 08:52:28 UTC
Matěj, could you please update it in Fedora as it fixed upstream?