From 9e3ba7c4b468ec55a048c515c049336ff1084937 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 25 Aug 2015 13:17:06 +0300 Subject: Explicitly open our configuration file in UTF-8 mode. This avoids any errors of the form: invalid byte sequence in US-ASCII --- lib/custodian/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index a0f24c1..2d08519 100644 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -416,7 +416,7 @@ module Custodian # # Read the configuration file. # - out = File.open(filename, 'r') { |file| file.readlines.collect } + out = File.open(filename, 'r:UTF-8') { |file| file.readlines.collect } # # Parse it -- cgit v1.2.1