D-Bus Spec change: dashes in interface names
thiago at kde.org
Sun Oct 15 13:11:18 PDT 2006
Havoc Pennington wrote:
>We forbid other valid domain name characters also, though I grant hyphen
>is likely by far the most common. I would guess Java packages also can't
>have hyphen, though, right? What do people do then?
No, not really. The rules for DNS domain names are specified in STD 3 and
reflected on RFC 3490 (Internationalizing Domain Names in Applications).
Quoting from it:
3. If the UseSTD3ASCIIRules flag is set, then perform these checks:
(a) Verify the absence of non-LDH ASCII code points; that is, the
absence of 0..2C, 2E..2F, 3A..40, 5B..60, and 7B..7F.
(b) Verify the absence of leading and trailing hyphen-minus; that
is, the absence of U+002D at the beginning and end of the
If we allow [a-zA-Z0-9-]+ for each part, we'll be allowing all the
hostnames permitted by STD 3. Internationalised domain names may be
represented in D-Bus by using their ACE (ASCII Compatible Encoding)
format, if needed be. It won't be pretty, but it will be doable.
On the other hand, you have a point with Java. I'd more important to be
consistent. If the Java developers are used to replacing '-' with '_', it
should be ok for us too.
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
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20061015/ff01e51c/attachment.pgp
More information about the dbus