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>
 | 
			
		||||
 | 
			
		||||
	* lib/uri/generic.rb (URI::Generic::check_userinfo,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
module REXML
 | 
			
		||||
  module Encoding
 | 
			
		||||
    @@__REXML_encoding_methods =<<-EOL
 | 
			
		||||
    @@__REXML_encoding_methods =<<-'EOL'
 | 
			
		||||
    # Convert from UTF-8
 | 
			
		||||
    def encode content
 | 
			
		||||
      array_utf8 = content.unpack('U*')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -61,8 +61,8 @@ class TestSystem < Test::Unit::TestCase
 | 
			
		|||
      dir << "/"
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    for script in Dir["#{dir}{lib,sample,ext}/**/*.rb"]
 | 
			
		||||
    assert_nothing_raised(Exception) do
 | 
			
		||||
      for script in Dir["#{dir}{lib,sample,ext}/**/*.rb"]
 | 
			
		||||
        valid_syntax? IO::read(script), script
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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