File: 0001-fix-default-encoding.patch

package info (click to toggle)
ruby-http-parser.rb 0.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 328 kB
  • ctags: 214
  • sloc: java: 431; ansic: 412; ruby: 355; makefile: 20
file content (21 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Debian Ruby Extras Maintainers
 <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Date: Mon, 17 Jun 2013 02:05:30 +0200
Subject: fix-default-encoding

---
 spec/parser_spec.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/spec/parser_spec.rb b/spec/parser_spec.rb
index 7134476..f904185 100644
--- a/spec/parser_spec.rb
+++ b/spec/parser_spec.rb
@@ -1,3 +1,7 @@
+if defined? Encoding
+  Encoding.default_external = "UTF-8"
+end
+
 require "spec_helper"
 require "json"