File: 0003-Add-Encoding.default_external.patch

package info (click to toggle)
coderay 1.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,356 kB
  • sloc: ruby: 9,985; makefile: 14; sh: 4; python: 1
file content (23 lines) | stat: -rw-r--r-- 738 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Youhei SASAKI <uwabami@gfd-dennou.org>
Date: Tue, 28 Feb 2012 20:44:20 +0900
Subject: Add Encoding.default_external
Forwarded: not-needed

Add Encoding.default_external = "UTF-8" due to sbuild/pbuilder locale
settings. This might be Debian specific.

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
---
 test/functional/basic.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/test/functional/basic.rb b/test/functional/basic.rb
index 3053b54..37d52f0 100755
--- a/test/functional/basic.rb
+++ b/test/functional/basic.rb
@@ -1,4 +1,5 @@
 # encoding: utf-8
+Encoding.default_external = "UTF-8" if defined? Encoding
 require 'test/unit'
 require File.expand_path('../../lib/assert_warning', __FILE__)