Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.
Actions
Bug #4349
closedTypeError: expected bytes, str found in make_string_value
Start date:
2019-10-18
Due date:
% Done:
100%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
1.2.0
Fixed in version:
1.2.1
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
Reported here: https://saxonica.plan.io/boards/4/topics/7618
When building a PyXdmValue from a string we get the following error:
TypeError: expected bytes, str found
Bug fix applied in the make_string_value function of the class PySaxonProcessor. Add the following code to convert the Python str to a C char array:
py_value_string = str_.encode('UTF-8') if str_ is not None else None
cdef char * c_str_ = py_value_string if str_ is not None else ""
Added test case to the unit test cases.
Please register to edit this issue
Actions