Bug 1280058

Summary: iconv appears to be adding a duplicate "SI" to the output for certain inputs
Product: Red Hat Enterprise Linux 5 Reporter: Jacob Hunt <jhunt>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.11CC: alanm, ashankar, bgollahe, codonell, fweimer, jhunt, mnewsome, msebor, ngalvin, pfrankli, rzaleski
Target Milestone: rcKeywords: Patch
Target Release: 5.11   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A defect in the character conversion routines for the IBM930, IBM933, IBM935, IBM937, and IBM939 character sets could result in a redundant shift sequence being output under certain library internal conditions. The redundant shift sequence makes the output non-conforming and can result in an inability to read back the output data. The character conversion routines have been corrected and no longer output a redundant shift sequence.
Story Points: ---
Clone Of:
: 1293914 1293916 (view as bug list) Environment:
Last Closed: 2016-01-25 18:56:05 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:

Description Jacob Hunt 2015-11-10 20:56:51 UTC
Created attachment 1092445 [details]
input file for iconv

Description of problem:

When a shift character is emitted at the end of the buffer the internal
shift state is not updated, causing the next round to emit another shift
character.

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

glibc-2.12-1.166.el6_7.1.i686
glibc-2.12-1.166.el6_7.1.x86_64
glibc-common-2.12-1.166.el6_7.1.x86_64
glibc-devel-2.12-1.166.el6_7.1.i686
glibc-devel-2.12-1.166.el6_7.1.x86_64
glibc-headers-2.12-1.166.el6_7.1.x86_64

How reproducible:

always

Steps to Reproduce:
1. Use the attached file to run through “iconv -f utf8 -t Cp935”

Actual results:

The resulting file has two "SI" outputs together where just one should be present.

Additional info:

Believe the issue to be this bug, https://patchwork.ozlabs.org/patch/442951/

Comment 2 Martin Sebor 2015-12-01 21:44:50 UTC
The upstream bug (https://sourceware.org/bugzilla/show_bug.cgi?id=17204) is still open and none of the patches has been committed.

Comment 4 Carlos O'Donell 2015-12-03 02:04:01 UTC
(In reply to Martin Sebor from comment #2)
> The upstream bug (https://sourceware.org/bugzilla/show_bug.cgi?id=17204) is
> still open and none of the patches has been committed.

That should be upstream bug 17197.

Comment 34 Matt Newsome 2016-01-25 18:56:05 UTC
Thank you for submitting this request for inclusion in Red Hat Enterprise Linux. We've carefully evaluated the request, but are unable to include it in a future release of Red Hat Enterprise Linux. To request that Red Hat re-consider this request, please re-open the bugzilla via appropriate support channels and provide additional business and/or technical details about its importance to you.

Comment 35 Matt Newsome 2016-01-25 19:36:50 UTC
(In reply to Matt Newsome from comment #34)
> We've carefully evaluated the request, but are unable to include it
> in a future release of Red Hat Enterprise Linux.

To be fully accurate, we are unable to include it in a future release of Red Hat Enterprise Linux 5, though we do hope to fix this in later major releases of Red Hat Enterprise Linux.