[fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

Florian Klaempfl florian at freepascal.org
Tue Sep 15 14:22:57 CEST 2009


Graeme Geldenhuys schrieb:
> Jonas Maebe het geskryf:
>> That's because you did not specify the code page of the source code,  
>> in which case it's parsed as CP 8859-1.
> 
> Even though my Linux system defaults to UTF-8? Umm
> 
> 
>> Add {$codepage utf-8} or save  
> 
> Adding that with test3.pas and then it works.
> 
> --------------------
> $ ./test4
> δΈ–
> --------------------
> 
> 
> Why doesn't the widestring manager default to the system defaults of my
> platform: UTF-8?  

Because the source might not be written by you and because we want
consistent behaviour. People wouldn't be happy if depending on the
person (or host) compiling the source, the output would be different.



More information about the fpc-devel mailing list