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
|
@ -1,3 +1,12 @@
|
||||||
|
Tue Dec 23 16:08:16 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
Tue Dec 23 14:13:51 2003 akira yamada <akira@ruby-lang.org>
|
Tue Dec 23 14:13:51 2003 akira yamada <akira@ruby-lang.org>
|
||||||
|
|
||||||
* lib/uri/generic.rb (URI::Generic::check_userinfo,
|
* lib/uri/generic.rb (URI::Generic::check_userinfo,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module REXML
|
module REXML
|
||||||
module Encoding
|
module Encoding
|
||||||
@@__REXML_encoding_methods =<<-EOL
|
@@__REXML_encoding_methods =<<-'EOL'
|
||||||
# Convert from UTF-8
|
# Convert from UTF-8
|
||||||
def encode content
|
def encode content
|
||||||
array_utf8 = content.unpack('U*')
|
array_utf8 = content.unpack('U*')
|
||||||
|
|
|
@ -61,8 +61,8 @@ class TestSystem < Test::Unit::TestCase
|
||||||
dir << "/"
|
dir << "/"
|
||||||
end
|
end
|
||||||
|
|
||||||
for script in Dir["#{dir}{lib,sample,ext}/**/*.rb"]
|
assert_nothing_raised(Exception) do
|
||||||
assert_nothing_raised(Exception) do
|
for script in Dir["#{dir}{lib,sample,ext}/**/*.rb"]
|
||||||
valid_syntax? IO::read(script), script
|
valid_syntax? IO::read(script), script
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,6 +13,12 @@ class TestEmptyCharset < Test::Unit::TestCase
|
||||||
def test_wsdl
|
def test_wsdl
|
||||||
begin
|
begin
|
||||||
xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read })
|
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
|
rescue Errno::EINVAL
|
||||||
# unsupported encoding
|
# unsupported encoding
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue