Sign in Join

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

Mailing lists / fpc-pascal / 2015-12

FPC 3.0: Where can I find fpc RTL tuned for {$mode DlephiUnicode} ?

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Dmitry Redkin

FPC 3.0 Introduces a new $mode : DelphiUnicode, which assumes string = UnicodeString. I'm trying to use this mode and I can't find where RTL string functions for this mode are located. For example, strutil.pas has only variants for string = ShortString and string = AnsiString. As an example such a simple program won't compile:

program Project1;
{$mode DelphiUnicode}
uses
  strutils;
var
  S : string;
begin
  Copy2SymbDel(S,' ');
end.

----------------------------
Dmitry Redkin, ACD Inc.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Reply by email

Jonas Maebe
to Dmitry Redkin
Dmitry Redkin wrote
FPC 3.0 Introduces a new $mode : DelphiUnicode, which assumes string = UnicodeString. I'm trying to use this mode and I can't find where RTL string functions for this mode are located.

The RTL has not yet been adapted for this syntax mode, we only have the compiler, i.e. syntax, support right now. The only RTL support for Unicode-based programs we added is documented at
http://wiki.freepascal.org/FPC_New_Features_3.0#Multiple_codepage_and_unicode_support_for_most_file-related_RTL_routines

I've now explicitly documented the limitations of the new syntax mode at http://wiki.freepascal.org/FPC_New_Features_3.0#New_delphiunicode_syntax_mode

Jonas

Reply by email