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

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

2013-10-07 Thread Michael Schnell
On 10/04/2013 11:02 PM, Sven Barth wrote: If you want to share Unicode- or AnsiStrings between library and application you need to use a common memory manager. For example you could use unit "cmem" as one of the first units of both programs. It will work on Unix based systems and *should* wor

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

2013-10-04 Thread Sven Barth
On 04.10.2013 22:14, stdreamer wrote: On 04/10/2013 10:44 μμ, Sven Barth wrote: On 04.10.2013 21:15, stdreamer wrote: On 04/10/2013 9:08 μμ, Sven Barth wrote: The main difference is that cwstring uses the Widestring manager of the system's C library while fpwidestring is a full Pascal Widestr

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

2013-10-04 Thread stdreamer
On 04/10/2013 10:44 μμ, Sven Barth wrote: On 04.10.2013 21:15, stdreamer wrote: On 04/10/2013 9:08 μμ, Sven Barth wrote: The main difference is that cwstring uses the Widestring manager of the system's C library while fpwidestring is a full Pascal Widestring manager. So by using cwstring in

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

2013-10-04 Thread Sven Barth
On 04.10.2013 21:15, stdreamer wrote: On 04/10/2013 9:08 μμ, Sven Barth wrote: The main difference is that cwstring uses the Widestring manager of the system's C library while fpwidestring is a full Pascal Widestring manager. So by using cwstring instead of fpwidestring am I safe to assume t

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

2013-10-04 Thread stdreamer
On 04/10/2013 9:08 μμ, Sven Barth wrote: The main difference is that cwstring uses the Widestring manager of the system's C library while fpwidestring is a full Pascal Widestring manager. So by using cwstring instead of fpwidestring am I safe to assume that the widestrings used and returned

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

2013-10-04 Thread Sven Barth
On 04.10.2013 18:13, ko paka wrote: 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 functi

[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