[fpc-pascal] Problem with file descriptors when doing fork on linux

2018-02-02 Thread Ko Paka
Hello, I would like to ask advice. My colleague run into a problem, when he had used TProcess to spawn other process. Because of fork nature, file descriptors was copied into newly created process. He found that for such cases CLOEXEC flag exists to be used when open file. I found flag declared in

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread ko paka
Hello, just out of curiosity - by packages do you mean delphi style dynamic packages - bpl ? tomas On Wed, May 21, 2014 at 10:53 PM, Sven Barth wrote: > Am 21.05.2014 17:53 schrieb "Craig Peterson" : > > > I don't mind keeping a fork of a stable release with the feature > > backported, if that

Re: [fpc-pascal] not possible add into class helper overloaded variant of some virtual method

2013-11-19 Thread ko paka
Reported as http://bugs.freepascal.org/view.php?id=25331. This "one point more" from my original email was probably some my temporary problem, because I am not able to repeat it again. regards tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

[fpc-pascal] not possible add into class helper overloaded variant of some virtual method

2013-11-18 Thread ko paka
Hello, in actual trunk - fpc 2.7.1 - is not possible to do folloving: unit uStringListHelper; {$mode delphiunicode} interface uses Classes, SysUtils; type { TStringListHelper } TStringListHelper = class helper for TStringList public procedure LoadFromFile(const FileName: string

Re: [fpc-pascal] use cwstring or fpwidestring on linux

2013-10-07 Thread ko paka
When I used both managers, like in example, program doesnt work as expected. Should I report it as error ? For now I will stay with cwstring manager, but good to know that there is native implementation(first I need to study something about unicode and collation though) . In fpc sources I found fpw

[fpc-pascal] use cwstring or fpwidestring on linux

2013-10-04 Thread ko paka
Hello, Are there some practical differences which one to use on linux ? When I will use only fpwidestring, then when use functions CompareUnicodeString / CompareWideString and current_Collation is nil, then routine is recalled on OldManager, where those functions are not implemented. Because of th

Re: [fpc-pascal] unicode rtl branch state

2013-07-30 Thread ko paka
Thank for the reponse - I will keep eye on both branches, but for now I will stay with ansi rtl and will somehow patch problematic parts in our code. tomas On Tue, Jul 30, 2013 at 10:12 AM, Jonas Maebe wrote: > > On 29 Jul 2013, at 14:52, ko paka wrote: > > > Hello, > > &g

[fpc-pascal] unicode rtl branch state

2013-07-30 Thread ko paka
Hello, I would like to ask state of implementation unicode rtl - if I has figured it correctly it is developed in branches/unicode. When I try to compile it (with fpc release 2.6.2) and use define FPC_UNICODE_RTL, I will get errors like: variant.inc(82,10) Error: Illegal type conversion: "Text" to