[2/3]: winemenubuilder: generate fd.o MIME and file type associations
Damjan Jovanovic
damjan.jov at gmail.com
Sun Jan 25 02:59:09 CST 2009
On Sat, Jan 24, 2009 at 7:11 PM, Frank Richter <frank.richter at gmail.com> wrote:
> 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.
Thank you, I've resent that patch.
Damjan
More information about the wine-devel
mailing list