Commit 4b6f365
committed
sourceview: Fix pasting multi-byte encodings (#179)
For this API, pygobject isn't handling string length arguments for us,
so we had to do it ourselves. Shockingly, I got it very wrong. The API
requires a UTF-8 encoded string (which pygobject transparently encoded
for us) but the length arg has to be the bytestring length, not the
unicode codepoint length, which is what we were previously passing
along.1 parent 9d35ffe commit 4b6f365
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| |||
0 commit comments