aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_unicode_normalize.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_unicode_normalize.rb')
-rw-r--r--test/test_unicode_normalize.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_unicode_normalize.rb b/test/test_unicode_normalize.rb
index 315b682b0a..587ab18575 100644
--- a/test/test_unicode_normalize.rb
+++ b/test/test_unicode_normalize.rb
@@ -10,7 +10,7 @@ class TestNormalize < Test::Unit::TestCase
@@debug = false # if true, generation of explicit error messages is switched on
# false is about two times faster than true
def read_tests
- IO.readlines(File.expand_path('../enc/unicode/data/NormalizationTest.txt', __dir__))
+ IO.readlines(File.expand_path('../enc/unicode/data/NormalizationTest.txt', __dir__), encoding: 'utf-8')
.collect.with_index { |linedata, linenumber| [linedata, linenumber]}
.reject { |line| line[0] =~ /^[\#@]/ }
.collect do |line|