On 04/29/2011 01:34 AM, Eric Blake wrote:
Worse, on mingw, if UNICODE is defined, it is defined to return WCHAR*, which means the result is in unicode but an application expecting bytes for characters will only see a one-byte answer.
AFAIR, Bruno didn't like introducing special hacks for the mingw "A" suffix, but I think in this case it's warranted (we're fixing the return type anyway).
Paolo