[gtksourceview/wip/uchardet] BufferOutputStream: s/G_CONVERT_ERROR_PARTIAL_INPUT/G_IO_ERROR_PARTIAL_INPUT/



commit 199bbd712ca6e337168bc791984938f43cbc755b
Author: Jehan <jehan girinstud io>
Date:   Sat Nov 28 16:20:10 2015 +0100

    BufferOutputStream: s/G_CONVERT_ERROR_PARTIAL_INPUT/G_IO_ERROR_PARTIAL_INPUT/
    
    g_convert() and g_convert_with_iconv() can have a
    G_CONVERT_ERROR_PARTIAL_INPUT error. But g_converter_convert() actually
    make G_IO_ERROR_PARTIAL_INPUT errors for an incomplete multibyte sequence.

 gtksourceview/gtksourcebufferoutputstream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcebufferoutputstream.c b/gtksourceview/gtksourcebufferoutputstream.c
index 2de2a29..156e02e 100644
--- a/gtksourceview/gtksourcebufferoutputstream.c
+++ b/gtksourceview/gtksourcebufferoutputstream.c
@@ -323,7 +323,7 @@ try_convert (GCharsetConverter *converter,
 
        if (err != NULL)
        {
-               if (err->code == G_CONVERT_ERROR_PARTIAL_INPUT)
+               if (err->code == G_IO_ERROR_PARTIAL_INPUT)
                {
                        /* FIXME We can get partial input while guessing the
                           encoding because we just take some amount of text


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]