This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/17610] New: iconv fails converting 0xCC in EBCDIC-AT-DE chars


https://sourceware.org/bugzilla/show_bug.cgi?id=17610

            Bug ID: 17610
           Summary: iconv fails converting 0xCC in EBCDIC-AT-DE chars
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: sourceware at tmp dot dau-sicher.de
                CC: drepper.fsp at gmail dot com

Hallo,

while converting RPG scripts from an IBM's iSeries I found a converting error.

See the following Base64-encoded line from an RPG script with EBCDIC 1141 
charset:

QEBAQEBAXMSBo6SUQEBAQEBAzEDBpKOWmUBAQEBAQEBAQEBAzE
DChaKDiJmFiYKklYdAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
QEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQA==

In ISO-8859-1 this reads:

      *Datum      Â Autor           Â Beschreibung 

But iconv (Version "(Ubuntu EGLIBC 2.19-0ubuntu6.3) 2.19") fails to convert  
from EBCDIC 1141 (0xCC) to ISO-8859-1 (0xA6):

$ echo QEBAQEBAXMSBo6SUQEBAQEBAzEDBpKOWmUBAQEBAQEBAQEBAzE\
DChaKDiJmFiYKklYdAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA\
QEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQA== | base64 -d | 
iconv -f EBCDIC-AT-DE -t ISO-8859-1
      *Datum      iconv: illegal input sequence at position 18

Other characters like 0xBB (|) or 0xBF (Ã) aren't converted, either.

Best regards,

Roland Tapken

PS: Original posted at
http://lists.gnu.org/archive/html/bug-gnu-libiconv/2014-11/msg00000.html, but I
was told that I should report it here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]