Small change for the desktop entry spec

Thiago Macieira thiago at kde.org
Fri Jun 29 10:05:06 PDT 2007


Vincent Untz wrote:
>Hi,
>
>Someone reported that in the current version of the spec, we say:
>
>"Desktop entry files are encoded as lines of 8-bit characters separated
>by LF characters."
>
>But UTF-8 characters can use several bytes for one character. We can
>either just say "lines separated by LF characters", "lines of text
>separated by LF characters" or "lines of UTF-8 characters separated by
>LF characters".

Yep, to clarify it shouldn't say that each character is 8-bits. It 
probably meant that it's 8-bit bytes (as opposed to 7-bit or some other, 
weird byte size). It also makes it impossible to write an UTF-16 or UCS-4 
desktop file, since those have 16 and 32 bits per Basic Latin characters 
(ASCII).

The UTF-8 encoding is recommended and the default, but it isn't mandatory. 
The Encoding= line can specify another encoding.

-- 
  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/20070629/81fc7eb3/attachment.pgp 


More information about the xdg mailing list