ruby-cvs:22802
From: duerst ruby-lang.org
Date: Thu, 21 Feb 2008 17:42:12 +0900 (JST)
Subject: [ruby-cvs:22802] Ruby:r15565 (trunk): Thu Feb 21 17:15:15 2008 Martin Duerst <duerst it.aoyama.ac.jp>
duerst 2008-02-21 17:42:10 +0900 (Thu, 21 Feb 2008)
New Revision: 15565
Modified files:
trunk/ChangeLog
trunk/test/ruby/test_transcode.rb
trunk/transcode.c
Log:
Thu Feb 21 17:15:15 2008 Martin Duerst <duerst it.aoyama.ac.jp>
* transcode.c: Added basic support for passing options to String#encode
via a hash. Currently only one option, with one value, is supported:
invalid: :ignore (dropping invalid byte sequences instead of
producing an error). Option naming is not yet stable!
* test/ruby/test_transcode.rb: Added a single test for invalid: :ignore
option. Not more tests because most data does not yet distinguish
between INVALID and UNKNOWN.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_transcode.rb?r1=15565&r2=15564&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15565&r2=15564&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/transcode.c?r1=15565&r2=15564&diff_format=u