Ignore the error if iconv doesn't support EUC-JP.
authorMatthias Clasen <matthiasc@src.gnome.org>
Mon, 14 Jul 2008 19:31:33 +0000 (19:31 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 14 Jul 2008 19:31:33 +0000 (19:31 +0000)
        * tests/iochannel-test.c: Ignore the error if iconv doesn't
        support EUC-JP.

svn path=/trunk/; revision=7182

ChangeLog
tests/iochannel-test.c

index 949ae92..a48d594 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-07-14  Matthias Clasen  <mclasen@redhat.com>
 
+       Bug 428048 – 2 of 51 tests fail on Solaris
+
+       * tests/iochannel-test.c: Ignore the error if iconv doesn't
+       support EUC-JP.
+
+2008-07-14  Matthias Clasen  <mclasen@redhat.com>
+
        * tests/option-test.c: Print error messages when something fails.
 
 2008-07-14  Matthias Clasen  <mclasen@redhat.com>
index 39b3337..f08688b 100644 (file)
@@ -91,8 +91,11 @@ gint main (gint argc, gchar * argv[])
     if (gerr)
       {
         g_warning (gerr->message);
+        /* Keep going if this is just a case of iconv not supporting EUC-JP, see bug 428048 */
+        if (gerr->code != G_CONVERT_ERROR_NO_CONVERSION)
+          return 1;
         g_error_free (gerr);
-        return 1;
+        gerr = NULL;
       }
     
     g_io_channel_set_buffer_size (gio_r, BUFFER_SIZE);