[delphizip] Re: problems with ; (semicolon) while extracting files

  • From: Daniel Jonas <delphizip@xxxxxxxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Fri, 24 Apr 2009 10:40:49 +0200

Quoting RPeters <rpeters@xxxxxxxxxxxxx>:

> RPeters wrote:
>> Daniel Jonas wrote:
>>
>>> hi,
>>>
>>> im using WinXP(SP3), Delphi5, ZipMaster Version 179.1016
>>>
>>> when i extract a file with a ; (semicolon) character in its name,
>>> all ; characters are changed to _ (underline) characters.
>>>
>>> here is my debug output:
>>> Message: (0) Read local filename Patient\0;0.txt
>>> SetExtName: Patient\0;0.txt
>>> SetNewName: C:\Temp\1.zip$\Patient\0_0.txt
>>> Message: (0) Unzipped file C:\Temp\1.zip$\Patient\0_0.txt of size 0
>>>
>>>
>>> is this a bug or intended?
>>> can i avoid this?
>>>
>>> thx in advance,
>>> Daniel Jonas
>>>
>>>
>> I consider it a bug but it is designed into it.
>> For some reason it allows validates names for DOS but later versions
>> Windows are less restricted in the characters that can be used - almost
>> anything other than |<>:*? and characters [#0..#31]. (actually Windows
>> itself is more restricted than the underlying file system which does not
>> make much sense).
>> I do know when compressing it checks some properties of the source drive
>> so, in theory at least, extract should be able to adapted - I will see
>> what I can do.
>>
>> I personally don't like replacing illegal characters with '_' , I think
>> it would be better to handle it similar to URLs - replace with an escape
>> sequence %nn (nn is decimal 'value' of the character).
>> Russell Peters
>>
>>
> Try the dll in http://files.delphizip.org/dz1791111.zip
> It should do the job ok - please let us know.
> Russell Peters

new dll is working perfectly.
many thx for this fast response.

Daniel Jonas




----------------------------------------------------------------
Diese Nachricht wurde mit IMP, dem "Internet Messaging Program"
geschrieben.

-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: