public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/17610] New: iconv fails converting 0xCC in EBCDIC-AT-DE chars
@ 2014-11-17  9:30 sourceware at tmp dot dau-sicher.de
  2014-11-17 13:22 ` [Bug libc/17610] " schwab@linux-m68k.org
  2014-11-17 13:34 ` schwab@linux-m68k.org
  0 siblings, 2 replies; 3+ messages in thread
From: sourceware at tmp dot dau-sicher.de @ 2014-11-17  9:30 UTC (permalink / raw)
  To: glibc-bugs

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.
>From glibc-bugs-return-26637-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon Nov 17 10:11:12 2014
Return-Path: <glibc-bugs-return-26637-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 3116 invoked by alias); 17 Nov 2014 10:11:11 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 3075 invoked by uid 48); 17 Nov 2014 10:11:07 -0000
From: "schwab@linux-m68k.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/17609] abnormal behavior for strncpy
Date: Mon, 17 Nov 2014 10:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: libc
X-Bugzilla-Version: 2.12
X-Bugzilla-Keywords:
X-Bugzilla-Severity: critical
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-17609-131-upP0GZ4SnO@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-17609-131@http.sourceware.org/bugzilla/>
References: <bug-17609-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-11/txt/msg00129.txt.bz2
Content-length: 599

https://sourceware.org/bugzilla/show_bug.cgi?id\x17609

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
You are copying between overlapping objects, which is undefined behaviour.  The
same is true for memcpy.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/17610] iconv fails converting 0xCC in EBCDIC-AT-DE chars
  2014-11-17  9:30 [Bug libc/17610] New: iconv fails converting 0xCC in EBCDIC-AT-DE chars sourceware at tmp dot dau-sicher.de
@ 2014-11-17 13:22 ` schwab@linux-m68k.org
  2014-11-17 13:34 ` schwab@linux-m68k.org
  1 sibling, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2014-11-17 13:22 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
EBCDIC-AT-DE implements CP8, not CP1141.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/17610] iconv fails converting 0xCC in EBCDIC-AT-DE chars
  2014-11-17  9:30 [Bug libc/17610] New: iconv fails converting 0xCC in EBCDIC-AT-DE chars sourceware at tmp dot dau-sicher.de
  2014-11-17 13:22 ` [Bug libc/17610] " schwab@linux-m68k.org
@ 2014-11-17 13:34 ` schwab@linux-m68k.org
  1 sibling, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2014-11-17 13:34 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
You should use IBM273 instead.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-17 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-17  9:30 [Bug libc/17610] New: iconv fails converting 0xCC in EBCDIC-AT-DE chars sourceware at tmp dot dau-sicher.de
2014-11-17 13:22 ` [Bug libc/17610] " schwab@linux-m68k.org
2014-11-17 13:34 ` schwab@linux-m68k.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).