summaryrefslogtreecommitdiffstats
path: root/src/io/stringstream.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-09-24 22:14:20 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2018-09-29 21:04:56 +0000
commitca9d69e7e53354800b57421d7b0e90191c604d2c (patch)
tree4576f8f26925c9d3a3a8b0b8a4ff7f4b51782c8f /src/io/stringstream.cpp
parentClean up stream output in repr-io.cpp (diff)
downloadinkscape-ca9d69e7e53354800b57421d7b0e90191c604d2c.tar.gz
inkscape-ca9d69e7e53354800b57421d7b0e90191c604d2c.zip
Purge gunichar from Inkscapestream
None of these functions seems to expect an actual gunichar (which is a 32-bit type and can hold any UTF-32 or UCS-4 character code, also known as a Unicode code point). Instead we want UTF-8 encoded character data (i.e. gchar, which is equivalent to char) that can be output byte-wise to form a valid UTF-8 encoded string.
Diffstat (limited to 'src/io/stringstream.cpp')
-rw-r--r--src/io/stringstream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/stringstream.cpp b/src/io/stringstream.cpp
index 62918ffa5..360cc7fc9 100644
--- a/src/io/stringstream.cpp
+++ b/src/io/stringstream.cpp
@@ -108,7 +108,7 @@ void StringOutputStream::flush()
/**
* Writes the specified byte to this output stream.
*/
-int StringOutputStream::put(gunichar ch)
+int StringOutputStream::put(char ch)
{
buffer.push_back(ch);
return 1;