diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2017-01-28 06:24:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2017-01-28 06:24:51 +0000 |
commit | b2c0ea2c3e150f8ac666cd1ec0a81b943ee131c8 (patch) | |
tree | 619f33677f9d18aa12e9b4ccbfb83e05bb966339 /test/unit | |
parent | 281bc5c454411e72f6ce934de7cbf1ca5192d35e (diff) | |
download | redmine-b2c0ea2c3e150f8ac666cd1ec0a81b943ee131c8.tar.gz redmine-b2c0ea2c3e150f8ac666cd1ec0a81b943ee131c8.zip |
do not replace all invalid utf8 (#24616)
git-svn-id: http://svn.redmine.org/redmine/trunk@16273 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/codeset_util_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/codeset_util_test.rb b/test/unit/lib/redmine/codeset_util_test.rb index 35ab0088d..dcfc08bce 100644 --- a/test/unit/lib/redmine/codeset_util_test.rb +++ b/test/unit/lib/redmine/codeset_util_test.rb @@ -91,7 +91,7 @@ class Redmine::CodesetUtilTest < ActiveSupport::TestCase s2 = Redmine::CodesetUtil.replace_invalid_utf8(s1) assert s2.valid_encoding? assert_equal "UTF-8", s2.encoding.to_s - assert_equal "??????", s2 + assert_equal "\xe3\x81\x93\xe3\x82\x93\xe3\x81\xab\xe3\x81\xa1??".force_encoding("UTF-8"), s2 end test "#to_utf8 should replace invalid non utf8" do |