MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: mysql.exe that built from source can't display Chinese
Posted by: McEase Tu
Date: April 11, 2008 06:04AM

Seems I found the problem.

In my_init.c, there is a statement in function my_win_init():
setlocale(LC_CTYPE, ""); /* To get right sortorder */
I change the second parameter to "C" and it works now. The statement above will set LC_CTYPE to "Chinese_People's Republic of China.936", which leads to putc(, stdout) failed for gbk-encoded characters.



Edited 1 time(s). Last edit at 04/11/2008 07:27AM by McEase Tu.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: mysql.exe that built from source can't display Chinese
2168
April 11, 2008 06:04AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.