diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-06 09:48:32 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-06 09:48:32 +0000 |
commit | f10af82d259687e6e96a97ebdacfdbda15fc5b2e (patch) | |
tree | 51ed3533ad1e1446e2e3066abf04827e026bd26d /test | |
parent | 987ec6b78778bf8c7fb0ec0eb1c0dc80bfda0d6a (diff) | |
download | ruby-f10af82d259687e6e96a97ebdacfdbda15fc5b2e.tar.gz |
* transcode.c (str_transcode0): check ECONV_HTML_TEXT_ENCODER and
ECONV_HTML_ATTR_ENCODER.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_econv.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb index 3f82d2742c..2fcc6ab786 100644 --- a/test/ruby/test_econv.rb +++ b/test/ruby/test_econv.rb @@ -774,5 +774,8 @@ class TestEncodingConverter < Test::Unit::TestCase "&\u3046\u2665&\"'".encode("iso-2022-jp", html: :text)) assert_equal("\"&\e$B$&\e(B♡&"'\"".force_encoding("iso-2022-jp"), "&\u3046\u2661&\"'".encode("iso-2022-jp", html: :attr)) + + assert_equal("&\u3046\u2661&\"'".force_encoding("utf-8"), + "&\u3046\u2661&\"'".encode("utf-8", html: :text)) end end |