[ruby-cvs:65354] nagachika:r58183 (ruby_2_3): merge revision(s) 57816, 57817: [Backport #13292]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Tue Mar 28 02:34:11 JST 2017


nagachika	2017-03-28 02:34:10 +0900 (Tue, 28 Mar 2017)

  New Revision: 58183

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58183

  Log:
    merge revision(s) 57816,57817: [Backport #13292]
    
    fix UTF-32 valid_encoding?
    
    * enc/utf_32be.c (utf32be_mbc_enc_len): check arguments precisely.
      [ruby-core:79966] [Bug #13292]
    
    * enc/utf_32le.c (utf32le_mbc_enc_len): ditto.
    
    * regenc.h (UNICODE_VALID_CODEPOINT_P): predicate for valid
      Unicode codepoints.
    fix UTF-32 valid_encoding?
    
    * test/ruby/test_io_m17n.rb (TestIO_M17N#test_puts_widechar): do
      not use invalid codepoint.  [ruby-core:79966] [Bug #13292]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/enc/utf_32be.c
    branches/ruby_2_3/enc/utf_32le.c
    branches/ruby_2_3/regenc.h
    branches/ruby_2_3/test/ruby/enc/test_utf32.rb
    branches/ruby_2_3/test/ruby/test_io_m17n.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list