From ca9d69e7e53354800b57421d7b0e90191c604d2c Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Tue, 25 Sep 2018 00:14:20 +0200 Subject: 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. --- src/io/uristream.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/io/uristream.cpp') diff --git a/src/io/uristream.cpp b/src/io/uristream.cpp index 6dfb38e1f..0b38dbc84 100644 --- a/src/io/uristream.cpp +++ b/src/io/uristream.cpp @@ -268,9 +268,9 @@ void UriReader::close() /** * */ -gunichar UriReader::get() +char UriReader::get() { - gunichar ch = (gunichar)inputStream->get(); + char ch = inputStream->get(); return ch; } @@ -402,7 +402,7 @@ void UriOutputStream::flush() /** * Writes the specified byte to this output stream. */ -int UriOutputStream::put(gunichar ch) +int UriOutputStream::put(char ch) { if (closed) return -1; @@ -468,7 +468,7 @@ void UriWriter::flush() /** * */ -void UriWriter::put(gunichar ch) +void UriWriter::put(char ch) { outputStream->put(ch); } -- cgit v1.2.3