File: encoding

package info (click to toggle)
ruby-minitest 5.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 576 kB
  • sloc: ruby: 6,397; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: force external encoding to UTF-8
 some tests require UTF-8 strings whereas the default locale is C in building
 environment
Origin: vendor
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: no
Last-Update: 2016-06-01

--- a/test/minitest/test_minitest_test.rb
+++ b/test/minitest/test_minitest_test.rb
@@ -1,5 +1,7 @@
 # encoding: UTF-8
 
+Encoding.default_external = "UTF-8"
+
 require "pathname"
 require "minitest/metametameta"