commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (COMPRESS-114) TarUtils.parseName does not properly handle characters outside the range 0-127
Date Wed, 04 Aug 2010 11:26:20 GMT

    [ https://issues.apache.org/jira/browse/COMPRESS-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895222#action_12895222
] 

Pavel edited comment on COMPRESS-114 at 8/4/10 7:25 AM:
--------------------------------------------------------

Hi Stefan, 

thanks for a swift reply!

I'm using Sun JDK 1.6.0_06, if it helps. I've checked out the project using Eclipse 3.6 and
built it with the Maven plugin for Eclipse.

thx

      was (Author: partysan):
    Hi Stefan, 

thanks for a swift reply!

I'm using Sun JDK 1.6.0_06, if it helps

thx
  
> 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 M.
>             Fix For: 1.1
>
>         Attachments: plusMinusForJIRAwithLicense.tar, TarArchiveEntry.java, 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±±±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.


Mime
View raw message