File: fix_encoding.patch

package info (click to toggle)
ruby-rspec-expectations 2.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 916 kB
  • ctags: 724
  • sloc: ruby: 8,202; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: force default external encoding to UTF-8
 This is required to make specs relying on Unicode characters to pass
 in building environment with C locale.
Origin: vendor
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2013-08-15

--- a/spec/rspec/expectations/differ_spec.rb
+++ b/spec/rspec/expectations/differ_spec.rb
@@ -1,4 +1,7 @@
 # encoding: utf-8
+
+Encoding.default_external="UTF-8" if defined? Encoding
+
 require 'spec_helper'
 require 'ostruct'