Bug #41777 | can not correctly display Chinese character under mysql client | ||
---|---|---|---|
Submitted: | 29 Dec 2008 4:59 | Modified: | 30 Dec 2008 13:15 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | mysql-5.1.30 | OS: | Windows (XP SP2) |
Assigned to: | CPU Architecture: | Any |
[29 Dec 2008 4:59]
[ name withheld ]
[29 Dec 2008 6:11]
[ name withheld ]
i digged into the MS CRT a little, and it show up that the problem is caused by tee_print_sized_data. tee_print_sized_data call tee_putc, which in turn call putc, which call write to do the actually write. but MS did some argument check in write, so if we wrote a single byte of some mutlibyte character, it writes nothing and return -1. i think replace tee_putc with tee_puts in tee_print_sized_data would fix the problem, but may cause some "sizing" problem. :)
[30 Dec 2008 13:15]
MySQL Verification Team
Thank you for the bug report. Duplicate of bug: http://bugs.mysql.com/bug.php?id=36279