commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COMPRESS-120) forbidden chars on windows
Date Wed, 13 Oct 2010 10:40:33 GMT

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

Emmanuel Bourg commented on COMPRESS-120:
-----------------------------------------

Replacing invalid characters with '_' sounds sensible, that's the behavior of archive utilities
likes WinRAR or 7-Zip. There are other restrictions on Windows that should be considered,
like the files using a device name (for example it's impossible to create a file named aux.txt).
The details are available at http://msdn.microsoft.com/en-us/library/Aa365247

> forbidden chars on windows
> --------------------------
>
>                 Key: COMPRESS-120
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-120
>             Project: Commons Compress
>          Issue Type: Improvement
>          Components: Archivers
>    Affects Versions: 1.0
>         Environment: WindowsXP32bit
>            Reporter: Helmut M.
>            Priority: Minor
>
> while uncompressing a tar archive, which includes files and directories containing special
characters like
> private char[] forbiddenCharsWindows = new char[] { ':', '*', '?', '"', '<', '>',
'|' }; the name of the tarEntry is corrupt
> and to create the directory or file is not possible. Exceptions occurs while creating
them.
> it would be better to replace them with '_'  instead to respond invalid entrynames.

-- 
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