Re: GObject memory statistics



On 7/17/06, Tommi Komulainen <tommi komulainen nokia com> wrote:
On Mon, 2006-07-17 at 09:00 +0100, ext Ross Burton wrote:
> On Fri, 2006-07-14 at 18:08 +0300, Tommi Komulainen wrote:
> > I think we should really look what iconv() and _pthread_once() do,
> > or get completely rid of iconv().  Currently it's needed for:
> > - Converting window titles from utf8 to latin1
> > - Converting png comment fields (containing hotspot etc info)
> >   from latin1 to utf8
> > - Doing filesystem file name conversions from/to latin1
> >
> >
> > Update: In IT-2006 software the need for iconv() is removed.
>
> How do you remove iconv from the (say) window title utf-8 to latin1?
> Did you implement a very simple converter (an almost-identity array
> would be a quick and easy solution) inside GTK?  If so then I'd be
> interested to see that upstreamed.

By commenting out all legacy WM hints handling :)  I mean really,
_NET_WM_NAME is now how old? In our case it makes absolutely no sense to
use WM_NAME et. al., not sure it makes sense even on the GNOME desktop
these days. And that's all it takes to drag in iconv. That and png
comments.

See the attached patch[1]. I'd give a viewcvs link but our viewcvs is
apparently down.


If you change it to detect if the currently running window manager supports
_NET_WM_NAME, we may even do something like this upstream.



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