lib/i18n/tasks/configuration.rb in i18n-tasks-0.7.12 vs lib/i18n/tasks/configuration.rb in i18n-tasks-0.7.13
- old
+ new
@@ -11,10 +11,10 @@
i18n-tasks.yml i18n-tasks.yml.erb
)
def file_config
file = CONFIG_FILES.detect { |f| File.exist?(f) }
- config = file && YAML.load(Erubis::Eruby.new(File.read(file)).result)
+ config = file && YAML.load(Erubis::Eruby.new(File.read(file, encoding: 'UTF-8')).result)
if config.present?
config.with_indifferent_access.tap do |c|
if c[:relative_roots]
warn_deprecated 'config/i18n-tasks.yml has relative_roots on top level. Please move relative_roots under search.'
c[:search][:relative_roots] = c.delete(:relative_roots)