[DRE-commits] [kwalify] 03/04: [patch] set encoding in the test runner to ensure files are opened using UTF-8
Marc Dequènes
duck at moszumanska.debian.org
Wed Aug 5 22:23:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
duck pushed a commit to branch master
in repository kwalify.
commit 08bec37e4d7005709a810f1033123b79cfbf77cc
Author: Marc Dequènes (Duck) <Duck at DuckCorp.org>
Date: Wed Aug 5 22:48:56 2015 +0200
[patch] set encoding in the test runner to ensure files are opened using UTF-8
---
debian/changelog | 1 +
debian/patches/series | 1 +
debian/patches/test_set_encoding.patch | 13 +++++++++++++
3 files changed, 15 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index a5317d5..fda6379 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ kwalify (0.7.2-3) UNRELEASED; urgency=medium
* Added patch to fix tests temporary directory creation and cleanup.
* Added patch to fix 'Config' class conflict in tests.
* Added patch to adapt expected test results to recent Ruby.
+ * Added patch to set encoding for the tests run.
-- Marc Dequènes (Duck) <Duck at DuckCorp.org> Tue, 04 Aug 2015 21:33:19 +0200
diff --git a/debian/patches/series b/debian/patches/series
index 414c877..d3a889b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ test_paths_fix.patch
test_fix_tmpdir.patch
test_config_class_conflict.patch
text_fix_data.patch
+test_set_encoding.patch
diff --git a/debian/patches/test_set_encoding.patch b/debian/patches/test_set_encoding.patch
new file mode 100644
index 0000000..685eb7f
--- /dev/null
+++ b/debian/patches/test_set_encoding.patch
@@ -0,0 +1,13 @@
+Index: kwalify/test/test.rb
+===================================================================
+--- kwalify.orig/test/test.rb
++++ kwalify/test/test.rb
+@@ -4,6 +4,8 @@
+ ### copyright(c) 2005-2010 kuwata-lab all rights reserved.
+ ###
+
++Encoding.default_external = "utf-8"
++
+ unless defined?(TESTDIR)
+ TESTDIR = File.expand_path(File.dirname(__FILE__))
+ $LOAD_PATH.unshift TESTDIR
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/kwalify.git
More information about the Pkg-ruby-extras-commits
mailing list