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
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.