Have iconv accept redundant escape sequences in IBM900, IBM903, IBM905,
commit692de4b3960dc90bdcfb871513ee4d81d314cf69
authorMartin Sebor <msebor@redhat.com>
Fri, 15 Jan 2016 18:25:13 +0000 (15 11:25 -0700)
committerMartin Sebor <msebor@redhat.com>
Fri, 15 Jan 2016 18:25:13 +0000 (15 11:25 -0700)
tree55f06774f980c8b9e621701a2383df12aa479236
parentf2b3078e6a20211233d4971653838e06d048296a
Have iconv accept redundant escape sequences in IBM900, IBM903, IBM905,
IBM907, and IBM909.

Patch for bug #17197 changes the encoder to avoid generating redundant
shift sequences.  However, those sequences may already be present in
data encododed by prior versions of the encoder.  This change modifies
the decoder to also avoid rejecting redundant shift sequences.

        [BZ #19432]
        * iconvdata/Makefile: Add bug-iconv11.
        * iconvdata/bug-iconv11.c: New test.
        * iconvdata/ibm930.c: Do not reject redundant shift sequences.
        * iconvdata/ibm933.c: Same.
        * iconvdata/ibm935.c: Same.
        * iconvdata/ibm937.c: Same.
        * iconvdata/ibm939.c: Same.
ChangeLog
iconvdata/Makefile
iconvdata/bug-iconv11.c [new file with mode: 0644]
iconvdata/ibm930.c
iconvdata/ibm933.c
iconvdata/ibm935.c
iconvdata/ibm937.c
iconvdata/ibm939.c