[ruby-cvs:64982] nobu:r57816 (trunk): fix UTF-32 valid_encoding?

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Mar 9 11:04:10 JST 2017


nobu	2017-03-09 11:04:10 +0900 (Thu, 09 Mar 2017)

  New Revision: 57816

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

  Log:
    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.

  Modified files:
    trunk/enc/utf_32be.c
    trunk/enc/utf_32le.c
    trunk/regenc.h
    trunk/test/ruby/enc/test_utf32.rb


More information about the ruby-cvs mailing list