diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-08-25 13:17:06 +0300 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-08-25 13:17:06 +0300 |
commit | 9e3ba7c4b468ec55a048c515c049336ff1084937 (patch) | |
tree | 23ced170c5b2f19bbd5dd47dc5b823f1a8e1ed90 | |
parent | 39df5122b6269fd0bf620d5965d2c5db7653d9bb (diff) |
Explicitly open our configuration file in UTF-8 mode.
This avoids any errors of the form:
invalid byte sequence in US-ASCII
-rw-r--r-- | lib/custodian/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |