[Bug 33447] Wine GUI on Mac display Traditional Chinese instead when host language is Simplify Chinese

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Apr 29 14:10:10 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=33447

--- Comment #18 from Qian Hong <fracting at gmail.com> 2013-04-29 14:10:10 CDT ---
Created attachment 44332
  --> http://bugs.winehq.org/attachment.cgi?id=44332
Patch: partial fix v2

(In reply to comment #17)
> Hi Qian,

> You leak the objected created by
> CFLocaleCreateCanonicalLanguageIdentifierFromString(), though.  In general,
> Core Foundation functions with "Create" or "Copy" in their names return an
> object that the caller is responsible for releasing.
> 

Aha, good catch, thanks!

> Also, I wouldn't bother with the new user_locale_string_utf8_ref variable. 
> Instead, just get the C string from user_locale_string_ref into user_locale and
> then strcat ".UTF-8" onto it.

Good idea, thanks.

Thanks a lot for review, how about this one?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list