Don't issue a warning if the TO and FROM encodings are identical.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 17 May 2008 07:44:28 +0000 (07:44 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 17 May 2008 07:44:28 +0000 (07:44 +0000)
src/libpspp/i18n.c

index c214fb55b0a0147514949e03311be172099276dc..70780eff968a6ec62c071da23229a4ebaac49fcc 100644 (file)
@@ -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,