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.
Subject
Views
Written By
Posted
5499
April 09, 2008 11:28PM
2637
April 10, 2008 02:15AM
2479
April 10, 2008 06:44AM
2532
April 12, 2008 02:31PM
2298
April 13, 2008 04:10AM
2432
April 11, 2008 03:14AM
Re: mysql.exe that built from source can't display Chinese
2342
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.