NetworkManager and "illegal" SSID chars = crash?

Owen Taylor otaylor at
Fri Sep 7 14:32:15 UTC 2007

On 9/7/07, Matthew Miller <mattdm at> wrote:
> On Fri, Sep 07, 2007 at 08:51:30AM -0400, Colin Walters wrote:
> > Guys, this thread is a lot more appropriate on a Bugzilla.  Say, here:
> I hate to clutter up bugzilla with vague bugs. It's not helpful for anyone.
> I wanted to narrow things down first.
> >
> <>
> > (spotted at least one bug from your backtrace that's probably causing the
> > crash; the encoding issue is a whole other set to which Owen's reply is the
> > best)
> The crash is, however, *very* related to the encoding issue, because the
> assumed ascii string encoding is used not only for display but as the
> internal representation passed around in the program.

I'd consider the two things actually quite distinct:

 * D-BUS object path: you want a *unique* *consistent* representation of the
   bytes of the ESSID. So you might, say, treat them as bytes and do URI-style
   %XY escaping of bytes that aren't legal ascii characters in the context

 * Display to the user: you want to make a best guess at the encoding and try
   to display the exact same thing that someone typed into the router
   rather some unique-but-looks-like-garbage escaped version.

- Owen

More information about the fedora-devel-list mailing list