On Tue, 17.05.16 00:14, Yuri D'Elia (wav...@thregr.org) wrote:

> On Mon, May 16 2016, Lennart Poettering wrote:
> > That's actually the interface index formatted as integer
> > string. However, since D-Bus does not allow object path components to
> > start with a number it it is escaped with an underscored followed by
> > the ASCII code of the character... Hence "3" becomes "_33", because
> > 0x33 is the ASCII code for the character "3"...
> 
> *Cough*
> 
> So the 10th interface would be _3130?

No. Only the first character of each component of a dbus object path
gets escaped like that, if it is a number (or actually any character
outside of a-zA-Z). hence:

         foo → foo
        foo3 → foo3
        3foo → _33foo
       3foo3 → _33foo3
           3 → _33
          10 → _310

And so on...

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to