summaryrefslogtreecommitdiffstats
path: root/src/io/base64stream.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-09-24 21:56:17 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2018-09-29 21:04:56 +0000
commitef8f5e3e5e081b2495f7a39e0d14f62309799723 (patch)
tree19cd6aa2bfa7ccada761ce0071a6884c7df8ac71 /src/io/base64stream.cpp
parentfix 90 deg cw/ccw rotation with inverted y-axis (diff)
downloadinkscape-ef8f5e3e5e081b2495f7a39e0d14f62309799723.tar.gz
inkscape-ef8f5e3e5e081b2495f7a39e0d14f62309799723.zip
Inkscapestream: Fix write methods for string types
As we output UTF8 encoded strings to normal streams we can (and should) put one byte at a time. Iterating over an ustring will give us "unichar"s with up to four bytes, though, which is bound to fail when written to a stream. Using Glib::ustring::raw() gives us a std::string with the raw (but still UTF8 encoded) character array that can be iterated byte-wise and output to the stream as-is.
Diffstat (limited to 'src/io/base64stream.cpp')
0 files changed, 0 insertions, 0 deletions