[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:22810

From: akr ruby-lang.org
Date: Fri, 22 Feb 2008 15:52:56 +0900 (JST)
Subject: [ruby-cvs:22810] Ruby:r15573 (trunk): * encoding.c (rb_enc_mbclen): return minlen instead of 1 when

akr	2008-02-22 15:52:54 +0900 (Fri, 22 Feb 2008)

  New Revision: 15573

  Added files:
    trunk/test/ruby/test_utf32.rb
  Modified files:
    trunk/ChangeLog
    trunk/encoding.c
    trunk/string.c

  Log:
    * encoding.c (rb_enc_mbclen): return minlen instead of 1 when
      a character is not found properly.
    
    * string.c (rb_enc_strlen): round up string length with fixed
      multibyte encoding such as UTF-32.
      (rb_enc_strlen_cr): ditto.
      (rb_str_substr): fix substring with fixed multibyte encoding.
      (rb_str_justify): check number of characters.
    


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_utf32.rb?revision=15573&view=markup
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_utf32.rb?r1=15573&r2=15572&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=15573&r2=15572&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15573&r2=15572&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=15573&r2=15572&diff_format=u


[前][次][番号順一覧][スレッド一覧][生データ]