Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
libxml-ruby now uses the BOM markings for UCS-2.
Browse files Browse the repository at this point in the history
  • Loading branch information
codahale committed Aug 4, 2008
1 parent 59e8dd1 commit 2dd47b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/faster_builder/xml_markup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def name

it "should generate XML with different encodings" do
@xml.instruct! :xml, :encoding => "UCS-2"
@xml.target!.should == "<\000?\000x\000m\000l\000 \000v\000e\000r\000s\000i\000o\000n\000=\000\"\0001\000.\0000\000\"\000 \000e\000n\000c\000o\000d\000i\000n\000g\000=\000\"\000U\000C\000S\000-\0002\000\"\000?\000>\000\n\000"
@xml.target!.should == "\377\376<\000?\000x\000m\000l\000 \000v\000e\000r\000s\000i\000o\000n\000=\000\"\0001\000.\0000\000\"\000 \000e\000n\000c\000o\000d\000i\000n\000g\000=\000\"\000U\000C\000S\000-\0002\000\"\000?\000>\000\n\000"
end

it "should generate standalone XML prologs" do
Expand Down

0 comments on commit 2dd47b8

Please sign in to comment.