-----Original Message----- From: Пётр Косаревский <[EMAIL PROTECTED]> To: peter green <[EMAIL PROTECTED]> 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. > _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel