Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-23 Thread Michael Schnell
On 05/22/2014 06:17 PM, Craig Peterson wrote: This is exactly the "data marshalling" I was talking about. .. And what you seemingly want to avoid. I suppose "technically" this method - especially when using the "event record pool" Marco mentioned - does not seem to have any great disadvantage

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

2014-05-23 Thread silvioprog
Hello, I've tried to compress a small file with TZipper class, but, even it compressing correcly, internaly, the file name is wrong. After compressed, the original "atenção.txt" file was renamed to "atenþÒo.txt". I opened an issue here: http://bugs.freepascal.org/view.php?id=26213 I have a prog

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

2014-05-23 Thread Michael Van Canneyt
On Fri, 23 May 2014, silvioprog wrote: Hello, I've tried to compress a small file with TZipper class, but, even it compressing correcly, internaly, the file name is wrong. After compressed, the original "atenção.txt" file was renamed to "atenþÒo.txt". I opened an issue here: http://bugs.fre

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

2014-05-23 Thread silvioprog
2014-05-23 12:30 GMT-03:00 Michael Van Canneyt : > > On Fri, 23 May 2014, silvioprog wrote: > >> Hello, >> I've tried to compress a small file with TZipper class, but, even it >> compressing correcly, internaly, the file name is wrong. After >> compressed, the original "atenção.txt" file was renam

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

2014-05-23 Thread Tomas Hajny
On Fri, May 23, 2014 17:30, Michael Van Canneyt wrote: > On Fri, 23 May 2014, silvioprog wrote: > >> Hello, >> I've tried to compress a small file with TZipper class, but, even it >> compressing correcly, internaly, the file name is wrong. After >> compressed, the original "atenção.txt" file was re

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

2014-05-23 Thread Reinier Olislagers
On 23/05/2014 17:30, Michael Van Canneyt wrote: > On Fri, 23 May 2014, silvioprog wrote: >> I've tried to compress a small file with TZipper class, but, even it >> compressing correcly, internaly, the file name is wrong. After >> compressed, the original "atenção.txt" file was renamed to "atenþÒo.t

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-23 Thread Craig Peterson
On 5/23/2014 2:09 AM, Michael Schnell wrote: > rather simple: > - declaring the event method as something like "closure" resulting it > having it do an auto-free on exit. > > more advanced (needing the RTL to provide pool of threads to fire on > demand): > - "parallel loop" and "future" support

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

2014-05-23 Thread Tomas Hajny
On Fri, May 23, 2014 17:38, Reinier Olislagers wrote: > On 23/05/2014 17:30, Michael Van Canneyt wrote: >> On Fri, 23 May 2014, silvioprog wrote: . . >>> I have a program that makes daily backups, and just discovered this >>> problem when I noticed that it did not compressing files with names >>>

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

2014-05-23 Thread Michael Van Canneyt
On Fri, 23 May 2014, Tomas Hajny wrote: On Fri, May 23, 2014 17:38, Reinier Olislagers wrote: On 23/05/2014 17:30, Michael Van Canneyt wrote: On Fri, 23 May 2014, silvioprog wrote: . . I have a program that makes daily backups, and just discovered this problem when I noticed that it did no

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

2014-05-23 Thread silvioprog
2014-05-23 13:28 GMT-03:00 Michael Van Canneyt : > > On Fri, 23 May 2014, Tomas Hajny wrote: > >> On Fri, May 23, 2014 17:38, Reinier Olislagers wrote: >> >>> On 23/05/2014 17:30, Michael Van Canneyt wrote: >>> On Fri, 23 May 2014, silvioprog wrote: >>> >>> I have a program that makes daily

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

2014-05-23 Thread Craig Peterson
> Nice. I can do it, opening a new issue in bugtracker. Filename encoding in zip files is poorly defined. The current APPNOTE.txt says that the only valid encoding is OEM 437, with UTF-8 if a bit is set in the header, but those were recent additions, and in practice Windows applications will gene

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

2014-05-23 Thread silvioprog
2014-05-23 15:50 GMT-03:00 Craig Peterson : > > Nice. I can do it, opening a new issue in bugtracker. > > Filename encoding in zip files is poorly defined. The current > APPNOTE.txt says that the only valid encoding is OEM 437, with UTF-8 if > a bit is set in the header, but those were recent add

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

2014-05-23 Thread Craig Peterson
On May 23, 2014, at 8:26 PM, silvioprog wrote: > 2014-05-23 15:50 GMT-03:00 Craig Peterson > I have a question. Adding this extended header, can I open/uncompress the zip > file normally in programs like 7z and WinRAR? Yes. The appnote describes the format for the "extra field", which is ext

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

2014-05-23 Thread Craig Peterson
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/ -- Craig Peterson Scooter Software___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:/

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

2014-05-23 Thread Michael Van Canneyt
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/ Great, thank you for this information. Nice to see an expert on the list :) Strange then that th