Commit 8e41506
committed
[ibmi] Fix error binding Unicode data causing truncation
The PASE binding code converts the Python Unicode object to UTF-8,
but passes the size of the PyUnicode object, which is in UCS-2
code units. Thus, if a Python Unicode object has any code points
above U+007F, the string lengths will not match and various errors
can occur, ranging from data trunctation to UTF-8 not properly
formed errors.1 parent 2c4cfc3 commit 8e41506
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5669 | 5669 | | |
5670 | 5670 | | |
5671 | 5671 | | |
5672 | | - | |
5673 | | - | |
| 5672 | + | |
| 5673 | + | |
| 5674 | + | |
| 5675 | + | |
| 5676 | + | |
5674 | 5677 | | |
5675 | 5678 | | |
5676 | 5679 | | |
| |||
0 commit comments