Bug #11717 MySQL cannot convert "Division Sign" to 'eucjpms' from the other character-set.
Submitted: 4 Jul 2005 8:24 Modified: 19 Jul 2005 23:28
Reporter: Yasufumi Kinoshita Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.7-beta OS:Any (*)
Assigned to: Shuichi Tamagawa CPU Architecture:Any

[4 Jul 2005 8:24] Yasufumi Kinoshita
Description:
MySQL cannot convert "Division Sign" to 'eucjpms' from the other character-set.

Division Sign
  Unicode(ucs2,utf8)    U+0000F7
  EUC(ujis,eucjpms)     0xA1E0
  Shift-JIS(sjis,cp932) 0x8180

#The following is "Client -> Table" case.
#This probrem is seen even at "Table -> Client" case.

How to repeat:
<<<eucjpms (probrem)>>>

create table test_eucjpms ( str varchar(10) ) default character set eucjpms;
insert into test_eucjpms values ( _ucs2 0x00F7 );
insert into test_eucjpms values ( _eucjpms 0xA1E0 );
insert into test_eucjpms values ( _ujis 0xA1E0 );
insert into test_eucjpms values ( _sjis 0x8180 );
insert into test_eucjpms values ( _cp932 0x8180 );

mysql> select hex(str) from test_eucjpms;
+----------+
| hex(str) |
+----------+
|          |
| A1E0     |
|          |
|          |
|          |
+----------+

....not converted from the other character-set!

<<<ujis (correct case)>>>

create table test_ujis ( str varchar(10) ) default character set ujis;
insert into test_ujis values ( _ucs2 0x00F7 );
insert into test_ujis values ( _eucjpms 0xA1E0 );
insert into test_ujis values ( _ujis 0xA1E0 );
insert into test_ujis values ( _sjis 0x8180 );
insert into test_ujis values ( _cp932 0x8180 );

mysql> select hex(str) from test_ujis;
+----------+
| hex(str) |
+----------+
| A1E0     |
| A1E0     |
| A1E0     |
| A1E0     |
| A1E0     |
+----------+

....converted correctly even from the other character-set.

Suggested fix:
N/A
[18 Jul 2005 5:39] Alexander Barkov
Ok to push.
[18 Jul 2005 20:39] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/27258
[18 Jul 2005 20:47] Shuichi Tamagawa
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html
[19 Jul 2005 5:38] Alexander Barkov
Shuichi, after pushing a bug fix, please change status to "Documenting",
not to "Closed". This helps doc team to include this change into ChangeLog.
Thanks.
[19 Jul 2005 23:28] Paul Dubois
Noted in 5.0.10 changelog.