Re: backwards compatible .desktop files



George <jirka 5z com> writes:

> On Fri, Jan 18, 2002 at 04:49:08PM -0500, Owen Taylor wrote:
> > Some distributions have had patches in them for a while to handle UTF-8;
> > it's hard to do this portably without pulling in pretty big framework
> > (a good chunk of GLib2), but I think that Kjartan has this code in
> > the latest gnome-libs stable release, conditionalized to at least work
> > on Linux/Glibc.
> 
> Oh cool, didn't know that.  In any case how does it decide which file is utf8
> and which is locale encoded?  I suppose dentry needs to understand the
> "Encoding" key and use that as well.

It should, and we should put Encoding: in all our new desktop files.

But since the KDE desktop files and old GNOME desktop files don't have 
it, the approach to "is UTF8" is simple. If the entire file is valid
UTF-8, then the desktop file is in UTF-8. This turns out to be a very
accurate.

Regards,
                                        Owen



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