[ruby-cvs:66200] duerst:r59026 (trunk): add test_ill_formed_utf_8_replace to test recommended number of \uFFFD

duerst at ruby-lang.org duerst at ruby-lang.org
Tue Jun 6 19:34:11 JST 2017


duerst	2017-06-06 19:34:10 +0900 (Tue, 06 Jun 2017)

  New Revision: 59026

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

  Log:
    add test_ill_formed_utf_8_replace to test recommended number of \uFFFD
    
    Add test method test_ill_formed_utf_8_replace to test/ruby/test_transcode.rb
    to check for the recommended number of \uFFFD replacement characters.
    This is the first part, using ill-formed prefixes, with suffixes up to
    the length of the original UTF-8 structure (including overlongs and
    the full 31-bit space.)
    
    For more details, see Unicode 9.0.0, Section 3.9, Best Practices for Using U+FFFD.

  Modified files:
    trunk/test/ruby/test_transcode.rb


More information about the ruby-cvs mailing list