From ec92be2988cd5ce5b30012c4fbfef16162684e78 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 17 May 2008 07:44:28 +0000 Subject: [PATCH] Don't issue a warning if the TO and FROM encodings are identical. --- src/libpspp/i18n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2