diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ruby/fast_xs/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ruby/fast_xs/files')
-rw-r--r-- | dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch b/dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch new file mode 100644 index 000000000000..cdd72f2db3fb --- /dev/null +++ b/dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch @@ -0,0 +1,23 @@ +Index: fast_xs-0.8.0/test/test_erb_util_module_overrides.rb +=================================================================== +--- fast_xs-0.8.0.orig/test/test_erb_util_module_overrides.rb ++++ fast_xs-0.8.0/test/test_erb_util_module_overrides.rb +@@ -35,11 +35,13 @@ class TestErbUtilModuleOverrides < Test: + + def test_preserve_encoding + foo = "foo" +- foo.force_encoding Encoding::US_ASCII +- assert_equal Encoding::US_ASCII, url_encode(foo).encoding +- assert_equal Encoding::US_ASCII, html_escape(foo).encoding +- assert_equal Encoding::US_ASCII, u(foo).encoding +- assert_equal Encoding::US_ASCII, h(foo).encoding ++ ascii_encoding = (RUBY_VERSION =~ /1\.9/) ? Encoding::ASCII_8BIT : Encoding::US_ASCII ++ ++ foo.force_encoding ascii_encoding ++ assert_equal ascii_encoding, url_encode(foo).encoding ++ assert_equal ascii_encoding, html_escape(foo).encoding ++ assert_equal ascii_encoding, u(foo).encoding ++ assert_equal ascii_encoding, h(foo).encoding + + foo.force_encoding Encoding::BINARY + assert_equal Encoding::BINARY, url_encode(foo).encoding |