On 24.01.2009 12:03, Damjan Jovanovic wrote:
+static char* wchars_to_unix_chars(LPCWSTR string) +{
- char *ret;
- INT size = WideCharToMultiByte(CP_UNIXCP, 0, string, -1, NULL, 0, NULL, NULL);
Since that is used to write fd.o desktop and mime files: double-check the respective specs, I believe they mandate UTF-8 as the character encoding. UNIXCP isn't necessarily UTF-8.
-f.r.