[Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

Michael Van Canneyt michael at freepascal.org
Sat Aug 31 09:49:08 CEST 2019



On Sat, 31 Aug 2019, Anthony Walter via lazarus wrote:

> Okay, going back and looking through the messages I see you did post a test
> with:
>
> {$codepage UTF8} and uses cwstring
>
> Here are the results with that added:
>
> On Linux using {$codepage UTF8} by itself causes both tests to fail. Adding
> cwstring causes both tests to work. On Windows trying to use cwstring
> causes the compilation to fail, but with {$codepage UTF8} added the tests
> work. I will try a few more tests, but there should be an "out of the box"
> option to get FPJson working without the need to add ifdefs along with
> extra directives added outside of the FPJson units themselves.

Glad you picked it up.

See my other mail for more details.

Bottom line:
You simply cannot ignore this. Doing so is asking for problems.

It may work for you, but fail for someone else, and then you'll be
scratching your head as to "why on earth doesn't it work?"

Michael.


More information about the lazarus mailing list