Re: [fpc-devel] Codepage aware RTL

2014-11-26 Thread Mattias Gaertner
On Wed, 26 Nov 2014 15:34:19 +0100
Hans-Peter Diettrich  wrote:

> Mattias Gaertner schrieb:
> > Hi,
> > 
> > The page about "FPC Unicode support" mentions what has already been
> > updated to preserve character data.
> > http://wiki.freepascal.org/FPC_Unicode_support#RTL_changes
> > 
> > Is there already a page about what has not (yet) been updated aka does
> > not work with all code pages?
> 
> You mean this section?
> http://wiki.freepascal.org/FPC_Unicode_support#RTL_todos

Graeme added that yesterday.

Mattias
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Codepage aware RTL

2014-11-26 Thread Hans-Peter Diettrich

Mattias Gaertner schrieb:

Hi,

The page about "FPC Unicode support" mentions what has already been
updated to preserve character data.
http://wiki.freepascal.org/FPC_Unicode_support#RTL_changes

Is there already a page about what has not (yet) been updated aka does
not work with all code pages?


You mean this section?
http://wiki.freepascal.org/FPC_Unicode_support#RTL_todos

DoDi

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Codepage aware RTL

2014-11-24 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said:
> 
> >[...]
> > From what I remember from an earlier test is that std I/O will fail because
> > literals are written with shortstr in some cases which isn't codepage aware.
> 
> Do you remember which function?

Never mind. That was without setcodepage I guess, since that determines the
default encoding, so it should be ok.  IOW if you can get the literals in the
right encoding it should work.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Codepage aware RTL

2014-11-24 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said:
> mar...@stack.nl (Marco van de Voort) wrote:
> 
> >[...]
> > From what I remember from an earlier test is that std I/O will fail because
> > literals are written with shortstr in some cases which isn't codepage aware.
> 
> Do you remember which function?

look at asm of


{$mode delphi}
const xx = 'bla';

begin
  writeln(xx);
end.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Codepage aware RTL

2014-11-24 Thread Mattias Gaertner
On Mon, 24 Nov 2014 23:24:59 +0100 (CET)
mar...@stack.nl (Marco van de Voort) wrote:

>[...]
> From what I remember from an earlier test is that std I/O will fail because
> literals are written with shortstr in some cases which isn't codepage aware.

Do you remember which function?

Mattias
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Codepage aware RTL

2014-11-24 Thread Marco van de Voort
In our previous episode, Jonas Maebe said:
> > Is there already a page about what has not (yet) been updated aka does
> > not work with all code pages?
> 
> As that page mentions, it's an exhaustive list. Hence, nothing else has
> been updated (other than the primitive string functions such as
> insert/copy/delete/setstring, and standard I/O such as
> read/write/readstr/writestr).

>From what I remember from an earlier test is that std I/O will fail because
literals are written with shortstr in some cases which isn't codepage aware.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Codepage aware RTL

2014-11-24 Thread Jonas Maebe
On 24/11/14 18:46, Mattias Gaertner wrote:
> The page about "FPC Unicode support" mentions what has already been
> updated to preserve character data.
> http://wiki.freepascal.org/FPC_Unicode_support#RTL_changes
> 
> Is there already a page about what has not (yet) been updated aka does
> not work with all code pages?

As that page mentions, it's an exhaustive list. Hence, nothing else has
been updated (other than the primitive string functions such as
insert/copy/delete/setstring, and standard I/O such as
read/write/readstr/writestr).


Jonas


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] Codepage aware RTL

2014-11-24 Thread Mattias Gaertner
Hi,

The page about "FPC Unicode support" mentions what has already been
updated to preserve character data.
http://wiki.freepascal.org/FPC_Unicode_support#RTL_changes

Is there already a page about what has not (yet) been updated aka does
not work with all code pages?

Mattias
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel