Sign in Join

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

Mailing lists / fpc-devel / 2006-05

Re[4]: " crt garbles writeln() output " feedback: otherproblems; not crt specific; command line parameters

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Пётр Косаревский

-----Original Message-----

Earlier message 19 lines
From: Пётр Косаревский To: peter green Date: Wed, 24 May 2006 12:13:29 +0400 Subject: Re[4]: [fpc-devel] " crt garbles writeln() output " feedback: otherproblems; not crt specific; command line parameters > > > oh yes writing the converters is easy, but what the compiler can't do is > > know what you meant to do when you write > > > > widestringvar := ansistringvar; > > > > because the ansistringvar could contain anything! it could be utf-8 from a > > network protocol, windows ansi from the windows gui, windows oem from the > > console etc. > > Well, default behavior can be set to console/windows/other codepage (depending on application type and OS), programmer should be able to override it both with explicit function widestringvar:=a2w(ansistringvar,codepage) and with something like SetDefaultAnsiStringCodepage(). > > Such things are not useless. >

Reply by email