From: John Darrington Date: Sat, 17 May 2008 07:44:28 +0000 (+0000) Subject: Don't issue a warning if the TO and FROM encodings are identical. X-Git-Tag: v0.6.0~9 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec92be2988cd5ce5b30012c4fbfef16162684e78;p=pspp-builds.git Don't issue a warning if the TO and FROM encodings are identical. --- diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index c214fb55..70780eff 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -46,7 +46,7 @@ create_iconv (const char* tocode, const char* fromcode) /* I don't think it's safe to translate this string or to use messaging as the convertors have not yet been set up */ - if ( (iconv_t) -1 == conv) + if ( (iconv_t) -1 == conv && 0 != strcmp (tocode, fromcode)) { const int err = errno; fprintf (stderr,