[ruby-cvs:51750] nobu:r44605 (trunk): string.c: use actual encodings

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Jan 15 14:03:49 JST 2014


nobu	2014-01-15 14:03:49 +0900 (Wed, 15 Jan 2014)

  New Revision: 44605

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44605

  Log:
    string.c: use actual encodings
    
    * string.c (get_actual_encoding): get actual encoding according to
      the BOM if exists.
    * string.c (rb_str_inspect): use according encoding, instead of
      pseudo encodings, UTF-{16,32}.  [ruby-core:59757] [Bug #8940]

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


More information about the ruby-cvs mailing list