mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rexml/encodings/US-ASCII.rb: typo. [ruby-talk:88650]
* test/ruby/test_system.rb: num of asserts depended on running dir.
* test/xsd/test_noencoding.rb: rexml + without iconv/uconv cannot
handle euc-jp. install iconv, uconv or xmlscan.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4bb0fd231e
commit
d83e21d15d
4 changed files with 18 additions and 3 deletions
|
|
@ -13,6 +13,12 @@ class TestEmptyCharset < Test::Unit::TestCase
|
|||
def test_wsdl
|
||||
begin
|
||||
xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read })
|
||||
rescue RuntimeError
|
||||
if XSD::XMLParser.const_defined?("REXMLParser")
|
||||
STDERR.puts("rexml cannot handle euc-jp without iconv/uconv.")
|
||||
return
|
||||
end
|
||||
raise
|
||||
rescue Errno::EINVAL
|
||||
# unsupported encoding
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue