Fix for ISO-8859-* encodings with libjconv.
[claws.git] / src / codeconv.c
index f822a3dcb066873e70212b8b4a2d585cb44b4f3d..d6f665ef061ff2d10d2441ddebd3907cc3e08a22 100644 (file)
@@ -414,8 +414,10 @@ CodeConvFunc conv_get_code_conv_func(const gchar *charset)
                code_conv = conv_jistodisp;
        else if (!strcasecmp(charset, CS_US_ASCII))
                code_conv = conv_ustodisp;
                code_conv = conv_jistodisp;
        else if (!strcasecmp(charset, CS_US_ASCII))
                code_conv = conv_ustodisp;
+#if !HAVE_LIBJCONV
        else if (!strncasecmp(charset, "ISO-8859-", 9))
                code_conv = conv_latintodisp;
        else if (!strncasecmp(charset, "ISO-8859-", 9))
                code_conv = conv_latintodisp;
+#endif /* !HAVE_LIBJCONV */
        else if (!strcasecmp(charset, CS_SHIFT_JIS) ||
                 !strcasecmp(charset, "SHIFT-JIS")  ||
                 !strcasecmp(charset, "SJIS")       ||
        else if (!strcasecmp(charset, CS_SHIFT_JIS) ||
                 !strcasecmp(charset, "SHIFT-JIS")  ||
                 !strcasecmp(charset, "SJIS")       ||