File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
mbstring /
libmbfl /
tests /
conv_encoding.tests /
cp51932_cp50220raw.exp
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:57 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
#!/usr/bin/expect -f
spawn tests/conv_encoding Japanese CP50220raw eucJP-win
set timeout 1
expect_after {
"\[^\r\n\]*\r\n" { fail $test }
}
set test "81 - 87ku"
send "\xf5\xba\xf6\xec\xf7\xc9\xf8\xb3\xf9\xa1\xfa\xa1\xfb\xa1\r"
expect {
"%1b%24%42%75%3a%76%6c%77%49%78%33%79%21%7a%21%7b%21%1b%28%42 (20)\r\n" { pass $test }
}
set test "kanji + kana"
send "ÆüËܸì¥Æ¥¹¥È\r"
expect {
"%1b%24%42%46%7c%4b%5c%38%6c%25%46%25%39%25%48%1b%28%42 (18)\r\n" { pass $test }
}
set test "full-width numerics"
send "£°£±£²£³£´£µ£¶£·£¸£¹\r"
expect {
"%1b%24%42%23%30%23%31%23%32%23%33%23%34%23%35%23%36%23%37%23%38%23%39%1b%28%42 (26)\r\n" { pass $test }
}
set test "full-width numerics"
send "Î"
expect {
"%1b%24%42%2d%42%1b%28%42 (8)\r\n" { pass $test }
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>