From: Bruno Haible Date: Fri, 10 Jan 2003 21:55:53 +0000 (+0000) Subject: Oops. X-Git-Tag: v0.12~1182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dd753fd0db9b703b6a80bc098b84478552be482;p=thirdparty%2Fgettext.git Oops. --- diff --git a/src/write-po.c b/src/write-po.c index 5208f3bef..11386a6d2 100644 --- a/src/write-po.c +++ b/src/write-po.c @@ -242,12 +242,12 @@ wrap (FILE *fp, const char *line_prefix, const char *name, const char *value, /* Avoid Solaris 2.9 bug with GB2312, EUC-TW, BIG5, BIG5-HKSCS, GBK, GB18030. */ # if defined __sun && !defined _LIBICONV_VERSION - if ( strcmp (po_lex_charset, "GB2312") == 0 - || strcmp (po_lex_charset, "EUC-TW") == 0 - || strcmp (po_lex_charset, "BIG5") == 0 - || strcmp (po_lex_charset, "BIG5-HKSCS") == 0 - || strcmp (po_lex_charset, "GBK") == 0 - || strcmp (po_lex_charset, "GB18030") == 0) + if ( strcmp (canon_charset, "GB2312") == 0 + || strcmp (canon_charset, "EUC-TW") == 0 + || strcmp (canon_charset, "BIG5") == 0 + || strcmp (canon_charset, "BIG5-HKSCS") == 0 + || strcmp (canon_charset, "GBK") == 0 + || strcmp (canon_charset, "GB18030") == 0) conv = (iconv_t)(-1); else # endif