fastlane/lib/fastlane/fast_file.rb in fastlane-2.79.0.beta.20180124010003 vs fastlane/lib/fastlane/fast_file.rb in fastlane-2.79.0.beta.20180125010002
- old
+ new
@@ -14,10 +14,10 @@
# @return The runner which can be executed to trigger the given actions
def initialize(path = nil)
return unless (path || '').length > 0
UI.user_error!("Could not find Fastfile at path '#{path}'") unless File.exist?(path)
@path = File.expand_path(path)
- content = File.read(path)
+ content = File.read(path, encoding: "utf-8")
# From https://github.com/orta/danger/blob/master/lib/danger/Dangerfile.rb
if content.tr!('“”‘’‛', %(""'''))
UI.error("Your #{File.basename(path)} has had smart quotes sanitised. " \
'To avoid issues in the future, you should not use ' \