diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-21 08:42:10 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-21 08:42:10 +0000 |
commit | 6d5ef97a32f74917efaa53049815873c4ae00aa1 (patch) | |
tree | 580ec0cb8820acc1f4ac67c47b1dfc735e2ae802 /encoding.c | |
parent | ca22f3e168dc16cda7b88cb257ce4298782e46b2 (diff) | |
download | ruby-6d5ef97a32f74917efaa53049815873c4ae00aa1.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
0 files changed, 0 insertions, 0 deletions