Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2014-11

Codepage aware RTL

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote 6 lines
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

Reply by email

Marco van de Voort
to Jonas Maebe

In our previous episode, Jonas Maebe said:

Show quoted text 9 lines
> 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.

Reply by email

Marco van de Voort
to Mattias Gaertner

In our previous episode, Mattias Gaertner said:

Show quoted text 7 lines
(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.

Reply by email

Marco van de Voort
to Mattias Gaertner: On Mon, 24 Nov 2014 23:24:59 +0100 (CET) Do you remember which function? Mattias

In our previous episode, Mattias Gaertner said:

Show quoted text 6 lines
>[...] > 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.

Reply by email

Hans-Peter Diettrich
to Mattias Gaertner: The page about "FPC Unicode support" mentions what has already been updated to preserve…
Show quoted text 8 lines
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

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich
Show quoted text 12 lines
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

Reply by email