]> Dogcows Code - chaz/tar/blobdiff - lib/unicodeio.c
allow using unicode
[chaz/tar] / lib / unicodeio.c
index 37b69aaa01cae1f5b9f3fcf379a481afc57aed14..a1db6e282dd8828f5f79b8355dbb39abd7d1291f 100644 (file)
 #ifndef errno
 extern int errno;
 #endif
+
+#if HAVE_ICONV
+# include <iconv.h>
+#endif
+
+/* Some systems, like SunOS 4, don't have EILSEQ.  On these systems,
+   define EILSEQ to some value other than EINVAL, because our invokers
+   may want to distinguish EINVAL from EILSEQ.  */
 #ifndef EILSEQ
-# define EILSEQ EINVAL
+# define EILSEQ ENOENT
 #endif
 #ifndef ENOTSUP
 # define ENOTSUP EINVAL
 #endif
 
-#if HAVE_ICONV
-# include <iconv.h>
-#endif
-
 #if HAVE_LANGINFO_CODESET && ! USE_INCLUDED_LIBINTL
 # include <langinfo.h>
 #endif
This page took 0.026543 seconds and 4 git commands to generate.