From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7093 invoked by alias); 21 Jun 2011 12:11:13 -0000 Received: (qmail 7069 invoked by uid 22791); 21 Jun 2011 12:11:12 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_IB X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Jun 2011 12:10:58 +0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: java-prs@gcc.gnu.org Subject: [Bug libgcj/49314] md5test, shatest output FAILs on Tru64 UNIX X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcj X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 21 Jun 2011 12:11:00 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2011-q2/txt/msg00082.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49314 --- Comment #14 from ro at CeBiTec dot Uni-Bielefeld.DE 2011-06-21 12:09:30 UTC --- > The question now is what's a clean fix for this issue, rather than > hardcoding the result? I've now checked this with native and GNU iconv: feff.utf-8 is the input sequence from iconv_init: > od -x feff.utf-8 0000000 bbef 0abf At first everything seemed to work with both tools, except that I need byte swapping with native iconv, but not with GNU iconv: > /usr/bin/iconv -f UTF-8 -t UCS-2 < feff.utf-8 | od -x 0000000 feff 000a > /vol/gnu/bin/iconv -f UTF-8 -t UCS-2 < feff.utf-8 | od -x 0000000 fffe 0a00 But when I removed the newline from the input file, results differ: > od -x feff.utf-8-nonl 0000000 bbef 00bf > /usr/bin/iconv -f UTF-8 -t UCS-2 < feff.utf-8-nonl | od -x 0000000 feff feff > /vol/gnu/bin/iconv -f UTF-8 -t UCS-2 < feff.utf-8-nonl | od -x 0000000 fffe As result, I've simply added a padding NUL byte to the input sequence. This let the iconv succeed and my arraycopy testcase and both md5test and shatest pass. I'm running a full rebuild and check of libjava for good measure. Rainer