[fpc-pascal] Unicode chars losing information

Adriaan van Os fpc at microbizz.nl
Mon Mar 8 15:05:07 CET 2021


Michael Van Canneyt wrote:
> 
> The output for me is the same, regardless of the -FcUTF-8 flag being 
> present
> or not: question marks.
> 
> But if I add
> 
> uses cwstring;
> 
> all will be well.
> 
> Rationale:
> Without that, the RTL cannot convert whatever the compiler wrote in
> the binary to UTF8 to display it on the console.
> 
> The compiler people will need to explain what exactly the compiler writes
> with or without the flag.

Well, this should at least produce a warning, if not an error. Silently producing the wrong code is 
not a good idea.

Regards,

Adriaan van Os



More information about the fpc-pascal mailing list