Re: "Encoding" key in the desktop entries



Yanko Kaneti <yaneti declera com> writes:

> Hi
> 
> Some desktop entries in core modules lack the required by standard [1]
> "Encoding" key. The count:
>       1 acme
>      12 gedit
>       1 gnome-applets
>       1 gnome-media
>       2 metacity
>       8 nautilus
>       1 procman
> 
> Another probably more serious problem is that current desktop code
> apparently assumes UTF-8 for the ones without "Encoding", when again by
> standard its supposed to assume Legacy-Mixed. 

Look again. The spec allows you to do basically anything you want for
files without an encoding key. The right behavior is usually:

 - If the file is valid UTF-8, assume UTF-8
 - Otherwise assume legacy-mixed.

Though this is not required in the standard. (The standard *does*
require supporting UTF-8). This more or less what the code
in gnome-desktop does.

Regards,
                                        Owen




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