[fpc-pascal] Funny things about utf-8 strings on mac

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jun 12 10:39:09 CEST 2007


On 12 jun 2007, at 10:17, Felipe Monteiro de Carvalho wrote:

> On 6/12/07, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>> The compiler internally stores such strings as widestrings. I don't
>> know the details of what the scanner does exactly with utf-8 and why
>> it does so, but there's quite a few utf-8 specific code in the  
>> scanner.
>
> Should I submit a bug report?

You can try, but as I said I have no idea whether what you are doing  
is correct or not. Maybe you're just supposed to wrap all your  
constant strings with UTF8Encode() before passing them to a routine  
which expects utf-8 strings.


Jonas



More information about the fpc-pascal mailing list