[DRE-commits] [ruby-cucumber-core] 04/05: force encoding in readme_spec.rb

Cédric Boutillier boutil at moszumanska.debian.org
Thu May 28 11:58:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-cucumber-core.

commit dbc696d8189b91e8522d5ad4d050d795343b9df4
Author: Cédric Boutillier <boutil at debian.org>
Date:   Thu May 28 13:52:48 2015 +0200

    force encoding in readme_spec.rb
---
 debian/patches/encoding_readme_spec.patch | 17 +++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/encoding_readme_spec.patch b/debian/patches/encoding_readme_spec.patch
new file mode 100644
index 0000000..2c24462
--- /dev/null
+++ b/debian/patches/encoding_readme_spec.patch
@@ -0,0 +1,17 @@
+Description: Set external encoding to UTF-8 for readme_spec.rb
+ In sbuild environment, the default external encoding for specs run by the rake
+ method seems to be ASCII. This causes an encoding error when trying to read
+ the UTF-8 README file.
+ Default external encoding is thus forced in this test file to UTF-8 to ensure
+ that the file will be read correctly.
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2015-05-28
+
+--- ruby-cucumber-core-1.1.3.orig/spec/readme_spec.rb
++++ ruby-cucumber-core-1.1.3/spec/readme_spec.rb
+@@ -1,3 +1,5 @@
++Encoding.default_external = "UTF-8"
++
+ require 'stringio'
+ require 'kramdown'
+ 
diff --git a/debian/patches/series b/debian/patches/series
index fc6bfb3..75e9bd4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 use_debian_unindent.patch
+encoding_readme_spec.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-cucumber-core.git



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