Re: intltool and charset.alias



jacob berkman wrote:
> 
> On Tue, 2002-09-10 at 04:23, Laurent Vivier wrote:
> > Hello Jacob,
> >
> > charset.alias supplies the translation of the charset names on the
> > current system. This name is used with iconv and is system dependent.
> > For instance, iconv from linux calls some charsets like "ISO-8859-1",
> > "ISO-8859-2" or "EUC-JP", but iconv from AIX needs to be used with
> > "ISO8859-1", "ISO8859-2" and "IBM-eucJP", from HP-UX with "iso88591",
> > "iso88592", and "eucJP", and so on for irix or solaris.
> >
> > charset.alias is provided by glib or gettext.
> 
> hmm, i don't have it in my system from either glib 1.2 or glib 2.0.
> which version supplies it?  is it only on some systems?

**** glib/ChangeLog.pre-2-0

Wed Sep 26 22:34:12 2001  Owen Taylor  <otaylor@redhat.com>

        Fixes for #58195, based on some ideas from Hidetosh Tajima.

        * aclibcharset.m4 glib/libcharset: Add Bruno Haible's
        portable-current charset detection code from libiconv.

        * glib/gutf8.c (g_utf8_get_charset_internal): Rewrite
        to use _g_locale_charset().

        * glib/gutf8.c (_g_charset_get_aliases): Private functions
        to get aliases from libcharset for a particular canonical
        name.

        * glib/gconvert.c: If loading a charset fails, try
        aliases to look for fallbacks.

**** glib/glib/libcharset/Makefile.am

charset_alias = $(DESTDIR)$(libdir)/charset.alias
charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
install-exec-local: all-local
        $(mkinstalldirs) $(DESTDIR)$(libdir)
        if test -f $(charset_alias); then \
          sed -f $(srcdir)/ref-add.sed $(charset_alias) > $(charset_tmp)
; \
          $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
          rm -f $(charset_tmp) ; \
        else \
          if test @GLIBC21@ = no; then \
            sed -f $(srcdir)/ref-add.sed charset.alias > $(charset_tmp)
; \
            $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
            rm -f $(charset_tmp) ; \
          fi ; \
        fi

**** glib/aclocal.m4:

AC_DEFUN([jm_GLIBC21],
  [
    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
      ac_cv_gnu_library_2_1,
      [AC_EGREP_CPP([Lucky GNU user],
        [
#include <features.h>
#ifdef __GNU_LIBRARY__
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  Lucky GNU user
 #endif
#endif
        ],
        ac_cv_gnu_library_2_1=yes,
        ac_cv_gnu_library_2_1=no)
      ]
    )
    AC_SUBST(GLIBC21)
    GLIBC21="$ac_cv_gnu_library_2_1"
  ]
)
---> Seems to be installed only if not GNU C lib >= 2.1


-- 
-------------- Laurent Vivier ---------------
        mailto:Laurent.Vivier@bull.net       
 phone: (+33) 476 29 7866  Bullcom: 229-7866
--------------BULL/FREC:B1-226---------------
When we speak of free software, we are refer-
ring to freedom, not price. (in GPL:Preamble)
-------------- BI&S/GeODE/AIX ---------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]