[Top][All Lists]

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

Re: All platforms fail with Unicode in menus.

From: David Kastrup
Subject: Re: All platforms fail with Unicode in menus.
Date: 28 Aug 2004 09:11:21 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Jan D." <address@hidden> writes:

> David Kastrup wrote:
> > The best contender right now is GTK which gets it right, except that
> > it completely garbles the menus when garbage collection occurs during
> > their creation (the gc-cons-threshold setting at the end of this
> > example file more or less ensures that stuff gets garbled).
> It seems that the string returned by ENCODE_UTF_8 gets collected during GC,
> resulting in passing garbage to the GTK menu code.
> I can work around the bug by this patch (the call to
> inhibit_garbage_collection is present in macmenu.c), but I am not sure
> it is the correct way to fix this:

> +       inhibit_garbage_collection ();

> Can someone that knows ENCODE_UTF_8 and garbage collection well
> comment on this patch?

I don't know either well, but of course that is not the correct way to
fix it.  The correct way would be to add appropriate GCPRO and UNGCPRO
calls for temporary data structures that should not yet be collected.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]