[cfe-dev] unicode identifiers

Jochen Wilhelmy j.wilhelmy at arcor.de
Wed Jun 22 02:21:03 PDT 2011


> The reason might be bogus but you're right, DLLs can only expose ASCII
> names in their export table, and hence there's no Unicode version of
> GetProcAddress. Though the symbol names in the PECOFF spec is said to
> be UTF-8, so Unicode names might theoretically work as long as they're
> not dllexport.
"no unicode version of ..." is microsoft speak and means "no utf-16 
version of...".
So are you sure that GetProcAdress doesn't swallow utf-8? The main advantage
of utf-8 is that you get unicode support for free. So if GetProcAddress 
just takes
the byte sequence and compares it against the PECOFF table then 
everything is ok.
It only does not work if it is broken on purpose such as the utf-8 
literals in visual c.

-Jochen




More information about the cfe-dev mailing list