D-Bus Spec change: dashes in interface names

Havoc Pennington hp at redhat.com
Sun Oct 15 11:21:08 PDT 2006

Thiago Macieira wrote:
> The D-Bus Specification says this about interfaces:
> ==========
> * Each element must only contain the ASCII characters "[A-Z][a-z][0-9]_" 
> and must not begin with a digit. 
> ==========
> DNS Domain names in ASCII are restricted to LDH - Letters, Digits, 
> Hyphens. However, the spec forbids interfaces like 
> org.my-organisation.Interface. On the other hand, underscores are 
> permitted. Is there any strong reason why this is so?
> If not, I ask for the change to be implemented as soon as possible, before 
> 1.0.

I think I was trying to have only either hyphens or underscores, because 
otherwise you always get a mix of naming conventions - e.g. in filenames 
people seem to choose one or the other by flipping a coin.

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?


More information about the dbus mailing list