[FreeBSD port]: devel/glib20
Alexander Nedotsukov
bland at FreeBSD.org
Wed Feb 25 19:36:23 PST 2009
Did you say that this does not work as advertised?
http://library.gnome.org/devel/glib/unstable/glib-running.html
On Tue, 24 Feb 2009 02:10:26 +0300, Stanislav Sedov <stas at freebsd.org>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> glib20 has a known filename encoding problem with non-utf8
> locales, because it doesn't perform names conversion from
> internal UTF8 to current locale by default (it used to do
> that some time ago). The patch included changes glib20
> behaviour to always do the conversion (this will work
> for all non-UTF8 locales and will have no effect fot UTF8
> ones). This is effectively the same redhat & co does in
> their deistributions.
>
> Comments?
>
> Index: Makefile
> ===================================================================
> RCS file: /home/pcvs/ports/devel/glib20/Makefile,v
> retrieving revision 1.155
> diff -u -r1.155 Makefile
> - --- Makefile 10 Jan 2009 05:21:19 -0000 1.155
> +++ Makefile 23 Feb 2009 23:04:49 -0000
> @@ -9,7 +9,7 @@
>
> PORTNAME= glib
> PORTVERSION= 2.18.4
> - -PORTREVISION?= 0
> +PORTREVISION?= 1
> CATEGORIES= devel
>
MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/glib/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/},}
> \
> ftp://ftp.gtk.org/pub/glib/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/ \
> Index: files/patch-glib_gconvert.c
> ===================================================================
> RCS file: files/patch-glib_gconvert.c
> diff -N files/patch-glib_gconvert.c
> - --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ files/patch-glib_gconvert.c 23 Feb 2009 23:04:49 -0000
> @@ -0,0 +1,24 @@
> +--- glib/gconvert.c.orig 2009-02-24 01:56:33.000000000 +0300
> ++++ glib/gconvert.c 2009-02-24 01:57:01.000000000 +0300
> +@@ -1213,20 +1213,12 @@
> + }
> + }
> + }
> +- else if (getenv ("G_BROKEN_FILENAMES") != NULL)
> ++ else
> + {
> + cache->filename_charsets = g_new0 (gchar *, 2);
> + cache->is_utf8 = g_get_charset (&new_charset);
> + cache->filename_charsets[0] = g_strdup (new_charset);
> + }
> +- else
> +- {
> +- cache->filename_charsets = g_new0 (gchar *, 3);
> +- cache->is_utf8 = TRUE;
> +- cache->filename_charsets[0] = g_strdup ("UTF-8");
> +- if (!g_get_charset (&new_charset))
> +- cache->filename_charsets[1] = g_strdup (new_charset);
> +- }
> + }
> +
> + if (filename_charsets)
>
>
> - --
> Stanislav Sedov
> ST4096-RIPE
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAkmjLOcACgkQK/VZk+smlYFtLACeI+0xr42uvMv4KEe4ar0BbtLe
> fN0An1+Y8rqaI82uRotvIG9TwUcxzBpU
> =SDFc
> -----END PGP SIGNATURE-----
>
> !DSPAM:49a32ce2967006598121310!
>
>
> _______________________________________________
> freebsd-gnome at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"
More information about the freebsd-gnome
mailing list