Re: [systemd-devel] DBus service name encoding

2013-03-05 Thread Lennart Poettering
On Mon, 04.03.13 19:00, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: > > On 04/03/13 14:31, Lennart Poettering wrote: > > So here's how to do this, it's very simple: every char outside of the > > A-Za-z0-9 range is escaped as "_XY" where XY is the numeric code of the > > char, as 2 char

Re: [systemd-devel] DBus service name encoding

2013-03-04 Thread David Strauss
On Mon, Mar 4, 2013 at 11:00 AM, Simon McVittie wrote: > Before freezing this as ABI, you might want to consider a couple of the more > subtle points from that function Considering that those two suggestions cover cases not yet handled by systemd's still-informal specification, I see no reason to

Re: [systemd-devel] DBus service name encoding

2013-03-04 Thread Simon McVittie
On 04/03/13 14:31, Lennart Poettering wrote: > So here's how to do this, it's very simple: every char outside of the > A-Za-z0-9 range is escaped as "_XY" where XY is the numeric code of the > char, as 2 char lower-case hex value. Note that "_" itself is also > escaped, to "_5f". This sounds a lot

Re: [systemd-devel] DBus service name encoding

2013-03-04 Thread Lennart Poettering
On Sun, 03.03.13 19:06, David Strauss (da...@davidstrauss.net) wrote: > I can't find any documentation on how service names get encoded for > DBus. It looks pretty close to URL encoding with underscores instead > of percent signs. > > If I can get a definitive answer, I'll update the wiki. If I c