1 # Patch against libcharset version 1.4
2 --- libiconv-1.12/libcharset//lib/localcharset.c 2006-10-18 07:55:49.000000000 -0400
3 +++ localcharset.c 2008-05-20 18:36:24.000000000 -0400
5 static const char * volatile charset_aliases;
7 /* Return a pointer to the contents of the charset.alias file. */
9 -get_charset_aliases (void)
11 +_g_locale_get_charset_aliases (void)
16 If the canonical name cannot be determined, the result is a non-canonical
23 -locale_charset (void)
24 +_g_locale_charset_raw (void)
27 - const char *aliases;
29 #if !(defined WIN32_NATIVE || defined OS2)
39 +_g_locale_charset_unalias (const char *codeset)
41 + const char *aliases;
44 /* The canonical name cannot be determined. */
48 - for (aliases = get_charset_aliases ();
49 + for (aliases = _g_locale_get_charset_aliases ();
51 aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
52 if (strcmp (codeset, aliases) == 0
53 --- libiconv-1.12/libcharset//include/libcharset.h.in 2005-05-19 13:14:56.000000000 -0400
54 +++ libcharset.h 2008-05-20 18:39:44.000000000 -0400
59 -#include <localcharset.h>
60 +#include "localcharset.h"
64 --- libiconv-1.12/libcharset//include/localcharset.h.in 2005-05-19 13:14:57.000000000 -0400
65 +++ localcharset.h 2008-05-20 18:36:24.000000000 -0400
67 The result must not be freed; it is statically allocated.
68 If the canonical name cannot be determined, the result is a non-canonical
70 -extern const char * locale_charset (void);
72 +extern const char * _g_locale_charset_raw (void);
73 +extern const char * _g_locale_charset_unalias (const char *codeset);
74 +extern const char * _g_locale_get_charset_aliases (void);