Skip to content

Commit

Permalink
Don't use bom in Psych since we don't support it yet
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Jun 5, 2012
1 parent 34df521 commit 4f53f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/19/psych.rb
Expand Up @@ -159,7 +159,7 @@ def self.parse yaml, filename = nil
#
# Raises a Psych::SyntaxError when a YAML syntax error is detected.
def self.parse_file filename
File.open filename, 'r:bom|utf-8' do |f|
File.open filename, 'r:utf-8' do |f|
parse f, filename
end
end
Expand Down Expand Up @@ -294,7 +294,7 @@ def self.load_stream yaml, filename = nil
# Load the document contained in +filename+. Returns the yaml contained in
# +filename+ as a ruby object
def self.load_file filename
File.open(filename, 'r:bom|utf-8') { |f| self.load f, filename }
File.open(filename, 'r:utf-8') { |f| self.load f, filename }
end

# :stopdoc:
Expand Down

0 comments on commit 4f53f0c

Please sign in to comment.