locale specific for .desktop
patrys at pld-linux.org
Tue Oct 9 12:25:49 PDT 2007
2007/10/9, Thiago Macieira <thiago at kde.org>:
> Patryk Zawadzki wrote:
> >2007/10/9, Takao Fujiwara - Tokyo S/W Center <Takao.Fujiwara at sun.com>:
> >> I think users want to use their icons and it depends on each user
> >> whether they use the simple icon names or not. I'ld like to know how
> >> to conver the user's behaviors in the specification but not the each
> >> case. Or do you mean we can avoid this case in each implementation,
> >> e.g. launching a dialog?
> >Use the UTF-encoded name and recode it to filesystem encoding when
> >searching for the file? Different filesystem can use different
> >encodings for file names across one system.
> Sorry, but that breaks if the locale somehow changes.
If what changes? I currently use UTF-8 encoded locale while saving
data to a ISO-8859-2 encoded USB stick. For each path segment check
the charset used by said directory (if on a different mount) and parse
next segment accordingly to that. This should work.
Note that I in no way support creating non-ascii icon names or desktop
entries visible in some locales but not in others.
More information about the xdg