tar 1.13.93 iconv patch

Zack Winkles winkie at linuxfromscratch.org
Sat Mar 13 21:01:04 PST 2004

Matthias Benkmann recently brought up an issue in which tar mis-detects
the presence of iconv() in the system libc.  This patch fixes the issue.
-------------- next part --------------
Submitted By: Zack Winkles <winkie at linuxfromscratch.org>
Date: 2003-03-14
Initial Package Version: 1.13.93
Origin: N/A
Description: `configure' mis-detects the presence of iconv() in glibc,
	and therefore builds a somewhat crippled `tar' binary.  This
	forces the use of glibc's iconv().

diff -Naur tar-1.13.93.orig/src/utf8.c tar-1.13.93/src/utf8.c
--- tar-1.13.93.orig/src/utf8.c	2004-02-22 15:52:34.000000000 -0500
+++ tar-1.13.93/src/utf8.c	2004-03-13 13:29:25.402032312 -0500
@@ -279,12 +279,14 @@
   return (iconv_t)(-1);
+#if 0
 iconv (iconv_t cd, ICONV_CONST char **inbuf, size_t *inbytesleft,
        char **outbuf, size_t *outbytesleft)
   return 0;
 iconv_close (iconv_t cd)

More information about the patches mailing list