Bug #4640 mysql-test-run terminates when the test case includes sjis characters with '5C'
Submitted: 20 Jul 2004 3:34 Modified: 22 Oct 2004 14:44
Reporter: Shuichi Tamagawa Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1.3 OS:Any (all)
Assigned to: Kent Boortz CPU Architecture:Any

[20 Jul 2004 3:34] Shuichi Tamagawa
Description:
Please see the attached file 'sjis.test' first. (Note: the file is encoded in sjis)
Using the file I executed mysql-test-run.

shell> ./mysql-test-run --record sjis
shell> cat r/sjis.result

'sjis.result' file should have the result of 4th and 5th state ment but it doesn't.
It looks like mysql-test-run terminates when it detects sjis character which has
5C for second byte encoding.

When I execute the command below using the same file, it returns the result as expected.
So I think this is a problem only for mysql-test-run.

shell> mysql -u root -p < sjis.test

See also other attached files - 'sjis.result', 'master.log' and 'master.trace'

How to repeat:
See above and use the attached 'sjis.test' file. (Note: The files are encoded in sjis)

Suggested fix:
Let the mysql-test-run keep running even if there is a sjis character with 5C in the test case file.
[20 Jul 2004 3:36] Shuichi Tamagawa
mysql-test/t/sjis.test

Attachment: sjis.test (application/octet-stream, text), 203 bytes.

[20 Jul 2004 3:37] Shuichi Tamagawa
mysql-test/r/sjis.result

Attachment: sjis.result (application/octet-stream, text), 153 bytes.

[20 Jul 2004 3:40] Shuichi Tamagawa
mysql-test/var/log/master.log

Attachment: master.log (application/octet-stream, text), 713 bytes.

[20 Jul 2004 3:43] Shuichi Tamagawa
mysql-test/var/log/master.trace (gzipped)

Attachment: master.trace.gz (application/x-tar, text), 22.99 KiB.

[20 Jul 2004 21:15] Shuichi Tamagawa
Expected Result

Attachment: expected_result.JPG (image/pjpeg, text), 20.80 KiB.

[20 Jul 2004 21:20] Shuichi Tamagawa
Expected Result

Attachment: expected_result.JPG (image/pjpeg, text), 29.33 KiB.

[30 Jul 2004 18:24] Kent Boortz
I have sent a patch that add multibyte character support to the mysqltest 
program to the reporter so that he can continue to write tests. A real patch
need some polishing and will be done later.