Re: [2/3]: winemenubuilder: generate fd.o MIME and file type associations
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.
On Sat, Jan 24, 2009 at 7:11 PM, Frank Richter <frank.richter(a)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
participants (2)
-
Damjan Jovanovic -
Frank Richter