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/gzipstream.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/io/gzipstream.cpp') diff --git a/src/io/gzipstream.cpp b/src/io/gzipstream.cpp index dfb605f14..82e20a08f 100644 --- a/src/io/gzipstream.cpp +++ b/src/io/gzipstream.cpp @@ -359,14 +359,14 @@ void GzipOutputStream::close() uLong outlong = crc; for (int n = 0; n < 4; n++) { - destination.put(static_cast(outlong & 0xff)); + destination.put(static_cast(outlong & 0xff)); outlong >>= 8; } //# send the file length outlong = totalIn & 0xffffffffL; for (int n = 0; n < 4; n++) { - destination.put(static_cast(outlong & 0xff)); + destination.put(static_cast(outlong & 0xff)); outlong >>= 8; } @@ -432,7 +432,7 @@ void GzipOutputStream::flush() /** * Writes the specified byte to this output stream. */ -int GzipOutputStream::put(gunichar ch) +int GzipOutputStream::put(char ch) { if (closed) { -- cgit v1.2.3