Re: [fpc-devel] Unicode resourcestrings

2008-03-03 Thread Anton Kavalenka
Florian Klaempfl wrote: Martin Schreiber schrieb: On Sunday 02 March 2008 18.48:01 Daniël Mantione wrote: Op Sun, 2 Mar 2008, schreef Florian Klaempfl: What did I wrong? I'am not sure how this could be made working just a remark: -Fcutf8 influences _only_ the interpr

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Martin Schreiber
On Sunday 02 March 2008 19.22:38 ik wrote: > I wonder, do you care also to try BIDI text as well ? > > Ido > No, BIDI is out of scope of MSEgui up to now, supporting all European languages without a headache is a must. Martin ___ fpc-devel maillist -

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Martin Schreiber
On Sunday 02 March 2008 19.31:37 Florian Klaempfl wrote: > Martin Schreiber schrieb: > > On Sunday 02 March 2008 18.48:01 Daniël Mantione wrote: > >> Op Sun, 2 Mar 2008, schreef Florian Klaempfl: > What did I wrong? > >>> > >>> I'am not sure how this could be made working just a remark: -Fcutf

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Daniël Mantione
Op Sun, 2 Mar 2008, schreef Martin Schreiber: On Sunday 02 March 2008 18.48:01 Daniël Mantione wrote: Op Sun, 2 Mar 2008, schreef Florian Klaempfl: What did I wrong? I'am not sure how this could be made working just a remark: -Fcutf8 influences _only_ the interpretation of string constants

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Florian Klaempfl
Martin Schreiber schrieb: > On Sunday 02 March 2008 18.48:01 Daniël Mantione wrote: >> Op Sun, 2 Mar 2008, schreef Florian Klaempfl: What did I wrong? >>> I'am not sure how this could be made working just a remark: -Fcutf8 >>> influences _only_ the interpretation of string constants when conve

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread ik
I wonder, do you care also to try BIDI text as well ? Ido On Sun, Mar 2, 2008 at 8:07 PM, Martin Schreiber <[EMAIL PROTECTED]> wrote: > > On Sunday 02 March 2008 18.48:01 Daniël Mantione wrote: > > Op Sun, 2 Mar 2008, schreef Florian Klaempfl: > > >> What did I wrong? > > > > > > I'am not sur

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Martin Schreiber
On Sunday 02 March 2008 18.48:01 Daniël Mantione wrote: > Op Sun, 2 Mar 2008, schreef Florian Klaempfl: > >> What did I wrong? > > > > I'am not sure how this could be made working just a remark: -Fcutf8 > > influences _only_ the interpretation of string constants when converting > > them to unicode

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Martin Schreiber
On Sunday 02 March 2008 18.43:01 Florian Klaempfl wrote: > Martin Schreiber schrieb: > > What did I wrong? > > I'am not sure how this could be made working just a remark: -Fcutf8 > influences _only_ the interpretation of string constants when converting > them to unicode. I thought as much. :-) __

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Daniël Mantione
Op Sun, 2 Mar 2008, schreef Florian Klaempfl: What did I wrong? I'am not sure how this could be made working just a remark: -Fcutf8 influences _only_ the interpretation of string constants when converting them to unicode. Right. Try to compile the (utf-8 encoded) file without specifying a

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Florian Klaempfl
Martin Schreiber schrieb: > On Sunday 02 March 2008 15.31:04 Daniël Mantione wrote: >>> Then the only possible way to use resourcestrings independent from the >>> system encoding is to compile all resource units with -Fcutf8 and to >>> write every assignment as "widestringvar:= >>> Utf8Decode(resou

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Martin Schreiber
On Sunday 02 March 2008 15.31:04 Daniël Mantione wrote: > > Then the only possible way to use resourcestrings independent from the > > system encoding is to compile all resource units with -Fcutf8 and to > > write every assignment as "widestringvar:= > > Utf8Decode(resourceconstant);"? > > Would th

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Daniël Mantione
Op Sun, 2 Mar 2008, schreef Martin Schreiber: On Sunday 02 March 2008 14.09:47 Daniël Mantione wrote: Op Sun, 2 Mar 2008, schreef Martin Schreiber: On Sunday 02 March 2008 10.22:32 Daniël Mantione wrote: Regarding code generation, there is a difference between ansistrings and resourcestring

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Martin Schreiber
On Sunday 02 March 2008 14.09:47 Daniël Mantione wrote: > Op Sun, 2 Mar 2008, schreef Martin Schreiber: > > On Sunday 02 March 2008 10.22:32 Daniël Mantione wrote: > >> Regarding code generation, there is a difference between ansistrings and > >> resourcestrings, since with a resourcestring load, t

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Daniël Mantione
Op Sun, 2 Mar 2008, schreef Martin Schreiber: On Sunday 02 March 2008 10.22:32 Daniël Mantione wrote: Regarding code generation, there is a difference between ansistrings and resourcestrings, since with a resourcestring load, the compiler must look into the resourcestring tables to find the

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Martin Schreiber
On Sunday 02 March 2008 10.22:32 Daniël Mantione wrote: > > Regarding code generation, there is a difference between ansistrings and > resourcestrings, since with a resourcestring load, the compiler must look > into the resourcestring tables to find the ansistring constant. > So it is theoretical p

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Daniël Mantione
Op Sun, 2 Mar 2008, schreef Martin Schreiber: On Friday 29 February 2008 10.07:29 Daniël Mantione wrote: Ideally from my point of view would be if the resourcestrings are stored in utf-8 if the unit is compiled with -Fcutf8 and decoded by utf8decode for widestring assignment on runtime indep

Re: [fpc-devel] Unicode resourcestrings

2008-03-02 Thread Martin Schreiber
On Friday 29 February 2008 10.07:29 Daniël Mantione wrote: > > > > Ideally from my point of view would be if the resourcestrings are stored > > in utf-8 if the unit is compiled with -Fcutf8 and decoded by utf8decode > > for widestring assignment on runtime independent of the system encoding. > > Th

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Christian Iversen
Martin Schreiber wrote: On Friday 29 February 2008 09.02:02 Daniël Mantione wrote: Op Fri, 29 Feb 2008, schreef Martin Schreiber: Hi, Is there a way in current FPC to have unicode or wide resourcestrings? Thanks, Resourcestrings are ansistrings, so the answer is no. This is indeed a shortcomin

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread peter green
This has been discussed before. Automatic conversion to/from ansistrings will always be to/from system encoding. If you want another encoding than the system encoding you will have to do a manual conversion. Actually you as the application developer can control how conversions between ans

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Marco van de Voort
> On Friday 29 February 2008 10.07:29 Dani?l Mantione wrote: > Another suggestion: > > implementation > > resourcestrings > resstring1 = 'abc'; > resstring2 = '1234'; > > resourcewidestrings > resstring3 = 'abc'; > resstring4 = '1234'; I don't like inventing Delphi incompat syntax for it, s

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Jonas Maebe
On 29 Feb 2008, at 09:25, Daniël Mantione wrote: Op Fri, 29 Feb 2008, schreef Martin Schreiber: Are there plans to implement unicode resourcestrings? No, but this is just because you are the first one to ask. There is already a bug report about it: http://bugs.freepascal.org/view.php?id=6

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Martin Schreiber
On Friday 29 February 2008 10.07:29 Daniël Mantione wrote: > Op Fri, 29 Feb 2008, schreef Martin Schreiber: > > On Friday 29 February 2008 09.25:18 Daniël Mantione wrote: > >> Op Fri, 29 Feb 2008, schreef Martin Schreiber: > >>> On Friday 29 February 2008 09.02:02 Daniël Mantione wrote: > Op F

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Daniël Mantione
Op Fri, 29 Feb 2008, schreef Martin Schreiber: On Friday 29 February 2008 09.25:18 Daniël Mantione wrote: Op Fri, 29 Feb 2008, schreef Martin Schreiber: On Friday 29 February 2008 09.02:02 Daniël Mantione wrote: Op Fri, 29 Feb 2008, schreef Martin Schreiber: Hi, Is there a way in current F

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Martin Schreiber
On Friday 29 February 2008 09.25:18 Daniël Mantione wrote: > Op Fri, 29 Feb 2008, schreef Martin Schreiber: > > On Friday 29 February 2008 09.02:02 Daniël Mantione wrote: > >> Op Fri, 29 Feb 2008, schreef Martin Schreiber: > >>> Hi, > >>> Is there a way in current FPC to have unicode or wide resour

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Martin Schreiber
On Friday 29 February 2008 09.27:08 Marco van de Voort wrote: > > On Friday 29 February 2008 09.02:02 Dani?l Mantione wrote: > > > Op Fri, 29 Feb 2008, schreef Martin Schreiber: > > > > Hi, > > > > Is there a way in current FPC to have unicode or wide > > > > resourcestrings? Thanks, > > > > > > Re

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Marco van de Voort
> On Friday 29 February 2008 09.02:02 Dani?l Mantione wrote: > > Op Fri, 29 Feb 2008, schreef Martin Schreiber: > > > Hi, > > > Is there a way in current FPC to have unicode or wide resourcestrings? > > > Thanks, > > > > Resourcestrings are ansistrings, so the answer is no. This is indeed a > > sho

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Daniël Mantione
Op Fri, 29 Feb 2008, schreef Martin Schreiber: On Friday 29 February 2008 09.02:02 Daniël Mantione wrote: Op Fri, 29 Feb 2008, schreef Martin Schreiber: Hi, Is there a way in current FPC to have unicode or wide resourcestrings? Thanks, Resourcestrings are ansistrings, so the answer is no.

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Martin Schreiber
On Friday 29 February 2008 09.02:02 Daniël Mantione wrote: > Op Fri, 29 Feb 2008, schreef Martin Schreiber: > > Hi, > > Is there a way in current FPC to have unicode or wide resourcestrings? > > Thanks, > > Resourcestrings are ansistrings, so the answer is no. This is indeed a > shortcoming in a wi

Re: [fpc-devel] Unicode resourcestrings

2008-02-29 Thread Daniël Mantione
Op Fri, 29 Feb 2008, schreef Martin Schreiber: Hi, Is there a way in current FPC to have unicode or wide resourcestrings? Thanks, Resourcestrings are ansistrings, so the answer is no. This is indeed a shortcoming in a widestring environment, the only solution is probably to encode them UT

[fpc-devel] Unicode resourcestrings

2008-02-28 Thread Martin Schreiber
Hi, Is there a way in current FPC to have unicode or wide resourcestrings? Thanks, Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel