The problem with that code is that it serializes the string as a
sequence of bytes (which is wrong) and not a sequence of either Unicode
code-points or UTF-8 characters.
I'll fix it myself.
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant
** Branch linked: lp:~paul-lucas/zorba/bug-1025622
** Changed in: zorba
Status: Confirmed = In Progress
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1025622
Title:
incorrect JSON
** Summary changed:
- incorrect JSON serialization of supplementory plane code points
+ Incorrect JSON serialization of supplementory plane code points
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
First, how does one execute a JSoniq query? If I put the above query
into a file and do:
bin/zorba -f -i -r --trailing-nl -q /tmp/foo.xq
I get:
/tmp/foo.xq:2,8: static error [err:XPST0003]: invalid expression;
raised at .../src/compiler/translator/translator.cpp:11081
** Changed in: zorba
I think that building zorba with option -DZORBA_WITH_JSON=ON is
sufficient.
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1025622
Title:
incorrect JSON serialization of supplementory plane
I put some breakpoints in and it never hits my serialization code, so
it's probably in the JSoniq serialization code.
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1025622
Title:
incorrect
The problem is almost certainly in void
serializer::json_emitter::emit_json_string(zstring string),
serializer.cpp line 1206 or thereabouts, where it escapes invalid
characters into unicode escape sequences. I have no idea how to do that
any differently than it is, so Paul, please take a look and
** Changed in: zorba
Status: Incomplete = Confirmed
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1025622
Title:
incorrect JSON serialization of supplementory plane code points
Status
8 matches
Mail list logo