Permalink
Browse files

Don't use bom in Psych since we don't support it yet

  • Loading branch information...
1 parent 34df521 commit 4f53f0ceab75bb5fd05a28909df6060373e59791 @dbussink dbussink committed Jun 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/19/psych.rb
View
4 lib/19/psych.rb
@@ -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
@@ -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:

0 comments on commit 4f53f0c

Please sign in to comment.