[fpc-devel] =?koi8-r?Q?=22=20?=crt garbles writeln() output =?koi8-r?Q?=22=20?=feedback: otherproblems; not crt specific; command line parameters

Пётр Косаревский ppkk at mail.ru
Wed May 24 10:14:54 CEST 2006



-----Original Message-----
From: Пётр Косаревский <ppkk at mail.ru>
To: peter green <plugwash at P10Link.net>
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.
> 



More information about the fpc-devel mailing list