File: 0001-default-external-encoding.patch

package info (click to toggle)
ruby-dbf 3.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,744 kB
  • sloc: ruby: 1,649; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 542 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Cédric Boutillier <boutil@debian.org>
Date: Fri, 8 Jul 2016 16:34:36 +0200
Subject: Set default external encoding to UTF-8

Forwarded: https://github.com/infused/dbf/pull/77
Last-Update: 2016-07-08
---
 spec/spec_helper.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index d30f00d..b2bcdbf 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -4,6 +4,8 @@ begin
 rescue LoadError
 end
 
+Encoding.default_external = "UTF-8"
+
 require 'dbf'
 require 'yaml'
 require 'rspec'