[2/3]: winemenubuilder: generate fd.o MIME and file type associations

Frank Richter frank.richter at gmail.com
Sat Jan 24 11:11:06 CST 2009

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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20090124/5883daf3/attachment.pgp 

More information about the wine-devel mailing list