[DRE-commits] [SCM] ruby-test-unit.git branch, master, updated. upstream/2.4.0-8-gbd248a4

Cédric Boutillier cedric.boutillier at gmail.com
Mon Sep 19 20:55:30 UTC 2011


The following commit has been merged in the master branch:
commit 908c0270c8dc694b98f002376040f6c9b9229a4c
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Mon Sep 19 16:25:09 2011 +0200

    patch to fix encoding issue

diff --git a/debian/patches/0010-fix_default_external_encoding.patch b/debian/patches/0010-fix_default_external_encoding.patch
new file mode 100644
index 0000000..58fe33c
--- /dev/null
+++ b/debian/patches/0010-fix_default_external_encoding.patch
@@ -0,0 +1,20 @@
+Description: test_assert_equal_with_different_encoding failing with LANG=C
+ Setting the default external encoding to UTF-8 fixes the issue.
+Author: Cédric Boutillier <cedric.boutillier at gmail.com>
+Last-Update: 2011-09-19
+Bug: https://github.com/test-unit/test-unit/issues/11
+
+--- a/test/test-assertions.rb
++++ b/test/test-assertions.rb
+@@ -5,6 +5,11 @@
+ #             Copyright (c) 2009-2010 Kouhei Sutou. All rights reserved.
+ # License:: Ruby license.
+ 
++
++if RUBY_VERSION =~ /1.9/
++    Encoding.default_external = Encoding::UTF_8
++end
++
+ require 'test/unit'
+ 
+ module Test
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..24e02e5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0010-fix_default_external_encoding.patch
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..4aceb10
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+unapply-patches

-- 
ruby-test-unit.git



More information about the Pkg-ruby-extras-commits mailing list