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

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

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:

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 mich...@freepascal.org: 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

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

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.txt. I

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

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 with

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

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 mich...@freepascal.org: 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

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 cr...@scootersoftware.com: 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

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 silviop...@gmail.com wrote: 2014-05-23 15:50 GMT-03:00 Craig Peterson cr...@scootersoftware.com 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

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