Re: mysql.exe that built from source can't display Chinese
Posted by:
McEase Tu
Date: April 11, 2008 03:14AM
I debuged mysql.exe and found that it received the right encoded Chinese string but failed to display it.
In mysql.cc, tee_print_sized_data() will call tee_putc() to print those characters to PAGER (stdout, by default), tee_putc() will call putc(), but putc() failed!
If I redirect the output to a file, such as "mysql.exe -uroot -e'some_query' > output.txt 2>&1", it succeeds! I get the Chinese string in output.txt!
So, why putc(, stdout) failed? Is there someone met this problem before? Thanks!
Subject
Views
Written By
Posted
5485
April 09, 2008 11:28PM
2630
April 10, 2008 02:15AM
2473
April 10, 2008 06:44AM
2525
April 12, 2008 02:31PM
2289
April 13, 2008 04:10AM
Re: mysql.exe that built from source can't display Chinese
2424
April 11, 2008 03:14AM
2334
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.