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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to