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 949ae92b99fa9a2644250c456116a36de65c24f2..a48d5944064ca9a268ef034ed37fae12b809f390 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index 39b3337a37c68b9289144bd46fd7342cca9108d7..f08688bc582bac010d871376bf4d83da691eb2b0 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);