Win32 port

Havoc Pennington hp at redhat.com
Wed Jun 28 06:24:07 PDT 2006


Thiago Macieira wrote:
> 
>> One thing to check if doing this is the encoding of windows usernames...
>> are they UTF-8 or UTF-16, or can they be in some other encoding...
> 
> Does this matter to us? If usernames are strings, then they are sent over 
> the bus as UTF-8.
> 
> Internally, I think Windows encodes them as UTF-16, as most of its own API 
> is done.
> 

Well, for some encodings you can't round-trip through UTF-8 without 
losing information, and for a username being byte-identical might be 
important ... doesn't seem likely to me, but I know some of the older 
Windows APIs were invented pre-unicode so I thought I'd ask.

Havoc



More information about the dbus mailing list