[fpc-pascal] TZipper and special file names like "atenção.txt" (#26213)

silvioprog silvioprog at gmail.com
Tue May 27 00:41:08 CEST 2014


2014-05-24 5:02 GMT-03:00 Reinier Olislagers <reinierolislagers at gmail.com>:

> On 24/05/2014 08:33, Michael Van Canneyt wrote:
> > On Fri, 23 May 2014, Craig Peterson wrote:
> >> The Info-zip project maintains an annotated Appnote that lists a bunch
> >> of the extra fields that various vendors use here:
> >> http://www.info-zip.org/doc/
> > Strange then that the info-zip so often creates garbled filenames on
> > Linux !
> > Probably the used zipper doesn't use the extra fields.
> Of course it doesn't use them. It has no unicode support.
>
>
> > Since it is optional, we can probably add a WideString property to the
> > zipitem and add an overloaded call;
> > Then we don't need to recreate everything,
> Recreate everything? Don't get what you mean here.
>
> >just add the extra fields.
> (Yes, IIRC, the zip64 fix added support for extra fields already so it
> shouldn't be a big change)
>
> Agreed when writing.
> When reading, I'd suggest following the suggested behaviour in the spec:
> 1. Try to read UTF8 filename from the EFS; if not present fall back to
> 2. Try to read extra fields filename as implemented by info-zip/abbrevia
> etc, if not present fall back to
> 3. current behaviour (reading filename as is)


Perfect! :)

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140526/883e659b/attachment.html>


More information about the fpc-pascal mailing list