[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Win32 port
From:       Havoc Pennington <hp () redhat ! com>
Date:       2006-06-28 13:24:07
Message-ID: 44A282F7.8010008 () redhat ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic