Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 1426 invoked from network); 17 May 2010 15:49:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 May 2010 15:49:07 -0000 Received: (qmail 56582 invoked by uid 500); 17 May 2010 15:49:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 56514 invoked by uid 500); 17 May 2010 15:49:06 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 56506 invoked by uid 99); 17 May 2010 15:49:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 15:49:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 15:49:04 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4HFmgrZ016047 for ; Mon, 17 May 2010 15:48:43 GMT Message-ID: <13355869.84711274111322896.JavaMail.jira@thor> Date: Mon, 17 May 2010 11:48:42 -0400 (EDT) From: "Helmut Minst (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (COMPRESS-114) TarUtils.parseName does not properly handle characters outside the range 0-127 In-Reply-To: <12349717.81221274097944413.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COMPRESS-114?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 868256#action_12868256 ]=20 Helmut Minst commented on COMPRESS-114: --------------------------------------- I've had a look on your solution. This is a better way to solve this Proble= m.=20 Thanks a lot! > TarUtils.parseName does not properly handle characters outside the range = 0-127 > -------------------------------------------------------------------------= ----- > > Key: COMPRESS-114 > URL: https://issues.apache.org/jira/browse/COMPRESS-114 > Project: Commons Compress > Issue Type: Bug > Affects Versions: 1.0 > Environment: Windows/Suse > Reporter: Helmut Minst > Fix For: 1.1 > > Attachments: plusMinusForJIRAwithLicense.tar, TarArchiveEntry.jav= a, TarArchiveInputStream.java, TarUtils.java > > > if a tarfile contains files with special characters, the names of the tar= entries are wrong. > example: > correct name: 0302-0601-3=C2=B1=C2=B1=C2=B1F06=C2=B1W220=C2=B1ZB=C2=B1LAL= ALA=C2=B1=C2=B1=C2=B1=C2=B1=C2=B1=C2=B1=C2=B1=C2=B1=C2=B1=C2=B1CAN=C2=B1=C2= =B1DC=C2=B1=C2=B1=C2=B104=C2=B1060302=C2=B1MOE.model > name resolved by TarUtils.parseName: 0302-0101-3=EF=BE=B1=EF=BE=B1=EF=BE= =B1F06=EF=BE=B1W220=EF=BE=B1ZB=EF=BE=B1HECKMODUL=EF=BE=B1=EF=BE=B1=EF=BE=B1= =EF=BE=B1=EF=BE=B1=EF=BE=B1=EF=BE=B1=EF=BE=B1=EF=BE=B1=EF=BE=B1ECE=EF=BE=B1= =EF=BE=B1DC=EF=BE=B1=EF=BE=B1=EF=BE=B107=EF=BE=B1060302=EF=BE=B1DOERN.model > please use:=20 > result.append(new String(new byte[] { buffer[i] })); > instead of:=20 > result.append((char) buffer[i]); > to solve this encoding problem. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.