mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
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.
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
The sources are derived from Bruno Haible's libcharset library included
|
|
with libiconv:
|
|
|
|
http//www.gnu.org/software/libiconv
|
|
|
|
The 'update.sh' script in this directory, when pointed at
|
|
the original sources updates the files in this directory
|
|
(and elsewhere in the GLib distribution) to the new version
|
|
|
|
The 'make-patch.sh' script in this directory regenerates
|
|
the patch files included in this directory from a copy
|
|
of the pristine sources and the files in this directory.
|
|
|
|
The license on the portions from libiconv portions is reproduced
|
|
below.
|
|
|
|
Owen Taylor
|
|
26 September 2001
|
|
|
|
====
|
|
|
|
/* Determine a canonical name for the current locale's character encoding.
|
|
|
|
Copyright (C) 2000-2001 Free Software Foundation, Inc.
|
|
|
|
This program is free software; you can redistribute it and/or modify it
|
|
under the terms of the GNU Library General Public License as published
|
|
by the Free Software Foundation; either version 2, or (at your option)
|
|
any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Library General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
License along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
USA. */
|
|
|
|
/* Written by Bruno Haible <haible@clisp.cons.org>. */
|