Re: backwards compatible .desktop files



Darin Adler <darin bentspoon com> writes:

> On 1/18/02 3:02 PM, "Owen Taylor" <otaylor redhat com> wrote:
> 
> > 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.
> 
> Is there a good reason not to do this heuristic in g_filename_to_utf8 when
> G_BROKEN_FILENAMES is not set?

An accurate heuristic is impossible, plus, more importantly, heuristics
don't work round-trip.

Regards,
                                        Owen



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