1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

eval("\"\xfd".force_encoding("utf-8")) generates garbage in error message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-12-02 01:43:29 +00:00
parent 21729a1c77
commit 850cd3a536

View file

@ -9,3 +9,8 @@ assert_equal '0', %q{
Process.wait pid
$?.to_i
}, '[ruby-dev:32404]'
assert_match /unterminated string meets end of file/, %q{
STDERR.reopen(STDOUT)
eval("\"\xfd".force_encoding("utf-8"))
}