git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Removed OLD_ICONV in favor of checking _LIBICONV_VERSION directly

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 3, 2007, 00:07 UTC
Message-ID
<7vbqacyyx1.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1194048010-65955-1-git-send-email-blaker@gmail.com>
Blake Ramsdell <blaker@gmail.com> writes:
Show 13 quoted lines
> diff --git a/utf8.c b/utf8.c
> index 4efef6f..a7feb4f 100644
> --- a/utf8.c
> +++ b/utf8.c
> @@ -300,7 +300,7 @@ int is_encoding_utf8(const char *name)
>   * with iconv.  If the conversion fails, returns NULL.
>   */
>  #ifndef NO_ICONV
> -#ifdef OLD_ICONV
> +#if _LIBICONV_VERSION <= 0x0109
>  	typedef const char * iconv_ibp;
>  #else
>  	typedef char * iconv_ibp;
Does everybody's iconv use the same _LIBICONV_VERSION scheme?
Compiling this:
        #include <iconv.h>
        int i = _LIBICONV_VERSION;
on a Linux box with GNU C library gives:
	i.c:3: error: '_LIBICONV_VERSION' undeclared here (not in a function)
here.
Previous: Blake RamsdellNext: Blake Ramsdell
Message 14 of 15 in “Mac OS X 10.5 does not require the OLD_ICONV flag set”
  1. Mac OS X 10.5 does not require the OLD_ICONV flag setBlake Ramsdell, Nov 2, 2007
  2. Fixed a gcc 4.0.1 complaint about an uninitialized variableBlake Ramsdell, Nov 2, 2007
  3. Junio C HamanoNov 2, 2007
  4. Junio C HamanoNov 2, 2007
  5. Blake RamsdellNov 2, 2007
  6. Mike HommeyNov 2, 2007
  7. Benoit SIGOURENov 2, 2007
  8. Mike HommeyNov 2, 2007
  9. David SymondsNov 2, 2007
  10. Junio C HamanoNov 2, 2007
  11. David SymondsNov 2, 2007
  12. Blake RamsdellNov 2, 2007
  13. Removed OLD_ICONV in favor of checking _LIBICONV_VERSION directlyBlake Ramsdell, Nov 3, 2007
  14. Junio C HamanoNov 3, 2007
  15. Blake RamsdellNov 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.