serializer to support arbitrary encodings
Bug #942161 reported by
Matthias Brantner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Paul J. Lucas |
Bug Description
The Serializer currently supports UTF-8 and UTF-16 as output encodings. The transcode::stream that was recently pushed into Zorba allows for arbitrary encodings. With this feature, the serializer should make use of it to also allow for arbitrary encodings.
However, this is a change that requires the API to change in a backwards incompatible way. Specifically, the way how a C++ api user can choose the encoding needs to be adapted.
Related branches
lp:~zorba-coders/zorba/bug-942161
- Matthias Brantner: Approve
- Paul J. Lucas: Approve
-
Diff: 1549 lines (+544/-439)20 files modifiedCMakeLists.txt (+8/-0)
bin/zorbacmd.cpp (+9/-6)
doc/cxx/examples/item_handler.cpp (+10/-9)
include/zorba/config.h.cmake (+2/-0)
include/zorba/options.h (+195/-123)
modules/org/expath/ns/file.xq.src/file.h (+1/-0)
src/api/options.cpp (+208/-165)
src/api/serialization/serializer.cpp (+55/-93)
src/api/serialization/serializer.h (+1/-4)
src/api/serializerimpl.cpp (+17/-22)
src/diagnostics/diagnostic_en.xml (+3/-3)
src/diagnostics/pregenerated/dict_en.cpp (+2/-2)
src/diagnostics/pregenerated/dict_zed_keys.h (+1/-1)
src/util/unicode_util.h (+17/-3)
swig/SerializationOptions.i (+1/-1)
test/apitest.cpp (+2/-2)
test/driver/testdriver.cpp (+9/-2)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-json-xml-index-point-maintenance.spec (+1/-1)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-json-xml-index-point.spec (+1/-1)
test/rbkt/Queries/zorba/jsoniq/collection-and-index/foaf-json-xml-update-index-point.spec (+1/-1)
Changed in zorba: | |
milestone: | none → 3.0 |
tags: | added: new-functionality-requirement serialization |
tags: | added: incompatible-change |
Changed in zorba: | |
assignee: | Nicolae Brinza (nbrinza) → Paul J. Lucas (paul-lucas) |
importance: | Medium → High |
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.