file module to allow for arbitrary encodings
Bug #942171 reported by
Matthias Brantner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Committed
|
Medium
|
Paul J. Lucas |
Bug Description
The file module's read and write functions need to be able to read and write arbitrary encodings.
Currently, only reading arbitrary encodings is supported. The write part requires API incompatible changes. Specifically, the file:write function should be removed and split into a file:write-text and file:write-binary function. The former accept the encoding as parameter. Non of the write functions should implicitly call fn:serialize.
Related branches
lp:~zorba-coders/zorba/bug-942171
- Matthias Brantner: Approve
- Paul J. Lucas: Approve
-
Diff: 4912 lines (+2013/-2107)21 files modifiedChangeLog (+1/-0)
doc/zorba/xqdoc/src/xqdoc-html.xq (+2/-2)
include/zorba/util/base64_stream.h (+71/-9)
include/zorba/util/fs_util.h (+4/-4)
include/zorba/util/hexbinary_stream.h (+66/-5)
include/zorba/util/transcode_stream.h (+69/-7)
modules/com/zorba-xquery/www/modules/xqdoc/batch.xq (+11/-5)
modules/org/expath/ns/file.xq (+581/-562)
modules/org/expath/ns/file.xq.src/file.cpp (+448/-481)
modules/org/expath/ns/file.xq.src/file.h (+359/-486)
modules/org/expath/ns/file.xq.src/file_function.cpp (+182/-234)
modules/org/expath/ns/file.xq.src/file_function.h (+75/-150)
modules/org/expath/ns/file.xq.src/file_module.cpp (+77/-77)
modules/org/expath/ns/file.xq.src/file_module.h (+29/-52)
scripts/notice-generator.xq.in (+2/-6)
src/util/fs_util.cpp (+15/-8)
test/fots_driver/reporting.xq (+5/-5)
test/fots_driver/util.xq (+3/-3)
test/rbkt/Queries/zorba/file/common.xqlib (+11/-8)
test/rbkt/Queries/zorba/file/file_read_serialize.xq (+1/-2)
test/rbkt/Queries/zorba/jsoniq/roundtrip/roundtrip_02.xq (+1/-1)
Changed in zorba: | |
milestone: | none → 3.0 |
tags: | added: incompatible-change |
Changed in zorba: | |
assignee: | Matthias Brantner (matthias-brantner) → Paul J. Lucas (paul-lucas) |
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
But doesn't the file module conform to an external specification? If so, how can you just change it at will?