[fpc-pascal] Unicode chars losing information

Tomas Hajny XHajT03 at hajny.biz
Tue Mar 9 02:44:33 CET 2021


On 2021-03-09 01:01, Graeme Geldenhuys via fpc-pascal wrote:
> On 08/03/2021 2:49 pm, Michael Van Canneyt via fpc-pascal wrote:
>> In that sense, unicode conversion support is something optional and so 
>> we
>> require you to enable it explicitly, since enabling it has some 
>> drawbacks:
> 
> Surely if you explicitly use the UnicodeString type, the compiler 
> should
> know you are using UTF-16 (the default encoding of said type), so why 
> not
> include the required units implicitly. It doesn't make sense otherwise.

UnicodeString may be used in a program simply because the included unit 
has it used in its interface. That may be the case even if there's no 
use of characters outside of US ASCII at all.

Tomas


More information about the fpc-pascal mailing list