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 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!

Options: ReplyQuote


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


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.