You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Helmut Minst (JIRA)" <ji...@apache.org> on 2010/05/17 15:03:43 UTC

[jira] Updated: (COMPRESS-114) determine name for TarEntries with special characters in TarUtils.parseName

     [ https://issues.apache.org/jira/browse/COMPRESS-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Helmut Minst updated COMPRESS-114:
----------------------------------

    Attachment: plusMinusForJIRA.tar

tarfile which includes such files with a filename containing special characters

> determine name for TarEntries with special characters in TarUtils.parseName
> ---------------------------------------------------------------------------
>
>                 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
>         Attachments: plusMinusForJIRA.tar
>
>
> if a tarfile contains files with special characters, the names of the tar entries are wrong.
> example:
> correct name: 0302-0601-3±±±F06±W220±ZB±LALALA±±±±±±±±±±CAN±±DC±±±04±060302±MOE.model
> name resolved by TarUtils.parseName: 0302-0101-3ᄆᄆᄆF06ᄆW220ᄆZBᄆHECKMODULᄆᄆᄆᄆᄆᄆᄆᄆᄆᄆECEᄆᄆDCᄆᄆᄆ07ᄆ060302ᄆDOERN.model
> please use: 
> result.append(new String(new byte[] { buffer[i] }));
> instead of: 
> result.append((char) buffer[i]);
> to solve this encoding problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.