locale specific for .desktop

Thiago Macieira thiago at kde.org
Tue Oct 9 12:19:36 PDT 2007


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.

The solution I see to this is to make the UTF-8 encoding valid only for 
the text entries in the Desktop file. All file paths (as well as possibly 
commands) would be 8-bit encoded. That matches the file URI spec. One 
could want to pass binary data to a command, for instance.

I will add, though, that this solution I presented above will very likely 
break in KDE and we will probably not follow it.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/xdg/attachments/20071009/f60c7cb6/attachment.pgp 


More information about the xdg mailing list