Hi,

> Is there a way to set the base directory on Windows (mingw-w64) if the
> directory name contains non ASCII characters.
> 
> char * bindtextdomain (const char * domainname, const char * dirname);
> 
> the function takes a const char* dirname

On native Windows, 'char *' strings are encoded using the so-called
"ANSI code page", which depends on the system locale (windows-1252 in
Western Europe, for example).

The charset conversion functions of Windows support 65001 as an alias
for UTF-8, but there is no locale which would have this encoding.

> On Windows, the OS does not work with UTF-8 strings so that I guess
> it would not work.

Correct. 'char *' strings in Windows API functions are almost never UTF-8
encoded.

> What can I do?

You can use Cygwin. Cygwin nowadays uses UTF-8 as 'char *' encoding for
all locales.

Bruno


Reply via email to