[fpc-pascal] Unicode chars losing information

Jonas Maebe jonas at freepascal.org
Mon Mar 8 20:49:16 CET 2021


On 08/03/2021 19:16, Ryan Joseph via fpc-pascal wrote:
> I agree it would be nice to have some warning that indexing the unicodeString wouldn't work as expected.

Then the compiler would have to give a warning for any indexing of
unicodestring. That would render it useless, because everyone would just
turn it off. It's not possible to safely use unicodestring without
knowing how 16bit unicode works. The compiler can't solve that.


Jonas


More information about the fpc-pascal mailing list