mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-07 19:35:50 +01:00
Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some point.
2004-04-23 Matthias Clasen <mclasen@redhat.com> * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some point. (#139134, Piotr Klaban)
This commit is contained in:
parent
b26e8861c1
commit
f5eb6acc72
@ -1,5 +1,9 @@
|
|||||||
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/libcharset/localcharset.c (_g_locale_get_charset_aliases):
|
||||||
|
Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some
|
||||||
|
point. (#139134, Piotr Klaban)
|
||||||
|
|
||||||
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
||||||
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/libcharset/localcharset.c (_g_locale_get_charset_aliases):
|
||||||
|
Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some
|
||||||
|
point. (#139134, Piotr Klaban)
|
||||||
|
|
||||||
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
||||||
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/libcharset/localcharset.c (_g_locale_get_charset_aliases):
|
||||||
|
Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some
|
||||||
|
point. (#139134, Piotr Klaban)
|
||||||
|
|
||||||
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
||||||
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/libcharset/localcharset.c (_g_locale_get_charset_aliases):
|
||||||
|
Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some
|
||||||
|
point. (#139134, Piotr Klaban)
|
||||||
|
|
||||||
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
||||||
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/libcharset/localcharset.c (_g_locale_get_charset_aliases):
|
||||||
|
Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some
|
||||||
|
point. (#139134, Piotr Klaban)
|
||||||
|
|
||||||
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
||||||
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/libcharset/localcharset.c (_g_locale_get_charset_aliases):
|
||||||
|
Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some
|
||||||
|
point. (#139134, Piotr Klaban)
|
||||||
|
|
||||||
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
* glib/gconvert.c (open_converter): Don't call g_strerror() here,
|
||||||
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
since it can lead to infinite recursion. (#139133, Piotr Klaban)
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2004-04-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/running.sgml: Document LIBCHARSET_ALIAS_DIR.
|
||||||
|
|
||||||
2004-04-15 Matthias Clasen <mclasen@redhat.com>
|
2004-04-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/tmpl/types.sgml: Correct the description of the
|
* glib/tmpl/types.sgml: Correct the description of the
|
||||||
|
@ -86,6 +86,17 @@ variables like <envar>LANG</envar>, <envar>PATH</envar> or <envar>HOME</envar>.
|
|||||||
</para>
|
</para>
|
||||||
</formalpara>
|
</formalpara>
|
||||||
|
|
||||||
|
<formalpara>
|
||||||
|
<title><envar>LIBCHARSET_ALIAS_DIR</envar></title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Allows to specify a nonstandard location for the
|
||||||
|
<filename>charset.aliases</filename> file that is used by the
|
||||||
|
character set conversion routines. The default location is the
|
||||||
|
<replaceable>libdir</replaceable> specified at compilation time.
|
||||||
|
</para>
|
||||||
|
</formalpara>
|
||||||
|
|
||||||
</refsect2>
|
</refsect2>
|
||||||
|
|
||||||
<refsect2>
|
<refsect2>
|
||||||
|
@ -119,10 +119,13 @@ _g_locale_get_charset_aliases ()
|
|||||||
{
|
{
|
||||||
#if !defined WIN32
|
#if !defined WIN32
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
const char *dir = LIBDIR;
|
const char *dir = getenv ("LIBCHARSET_ALIAS_DIR");
|
||||||
const char *base = "charset.alias";
|
const char *base = "charset.alias";
|
||||||
char *file_name;
|
char *file_name;
|
||||||
|
|
||||||
|
if (dir == NULL)
|
||||||
|
dir = LIBDIR;
|
||||||
|
|
||||||
/* Concatenate dir and base into freshly allocated file_name. */
|
/* Concatenate dir and base into freshly allocated file_name. */
|
||||||
{
|
{
|
||||||
size_t dir_len = strlen (dir);
|
size_t dir_len = strlen (dir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user