commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] Commented: (COMPRESS-120) forbidden chars on windows
Date Wed, 13 Oct 2010 13:18:34 GMT


Sebb commented on COMPRESS-120:

The invalid characters and filenames obviously depend on the OS, so the code would need to
either be configurable, or autodetect the host OS.

Also, note that some Java implementations (or host OSes) may automatically convert invalid
For example, OpenVMS converts aux><txt to aux__txt. Unix allows everything except NUL
and /.

However, a Windows-specific filename "cleaning" method would potentially be useful.
The code could potentially also be useful as part of Commons IO?

> forbidden chars on windows
> --------------------------
>                 Key: COMPRESS-120
>                 URL:
>             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
> 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.

View raw message