[ruby-cvs:65274] usa:r58103 (ruby_2_2): merge revision(s) 57816, 57817: [Backport #13292]

usa at ruby-lang.org usa at ruby-lang.org
Sun Mar 26 02:01:54 JST 2017


usa	2017-03-26 02:01:54 +0900 (Sun, 26 Mar 2017)

  New Revision: 58103

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

  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_2/
  Modified files:
    branches/ruby_2_2/enc/utf_32be.c
    branches/ruby_2_2/enc/utf_32le.c
    branches/ruby_2_2/regenc.h
    branches/ruby_2_2/test/ruby/enc/test_utf32.rb
    branches/ruby_2_2/test/ruby/test_io_m17n.rb
    branches/ruby_2_2/version.h


More information about the ruby-cvs mailing list