1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* transcode.c (str_encode): about the extension of :fallback

option since 1.9.3.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-12-14 06:28:32 +00:00
parent 8fbf055e33
commit 4474c83a9d
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Dec 14 15:28:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* transcode.c (str_encode): about the extension of :fallback
option since 1.9.3.
Wed Dec 14 12:19:59 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed Dec 14 12:19:59 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* load.c (load_unlock): release loading barrier and then remove it * load.c (load_unlock): release loading barrier and then remove it

View file

@ -2828,7 +2828,9 @@ static VALUE encoded_dup(VALUE newstr, VALUE str, int encidx);
* Sets the replacement string to the given value. The default replacement * Sets the replacement string to the given value. The default replacement
* string is "\uFFFD" for Unicode encoding forms, and "?" otherwise. * string is "\uFFFD" for Unicode encoding forms, and "?" otherwise.
* :fallback :: * :fallback ::
* Sets the replacement string by the given hash for undefined character. * Sets the replacement string by the given object for undefined
* character. The object should be a Hash, a Proc, a Method, or an
* object which has [] method.
* Its key is an undefined character encoded in the source encoding * Its key is an undefined character encoded in the source encoding
* of current transcoder. Its value can be any encoding until it * of current transcoder. Its value can be any encoding until it
* can be converted into the destination encoding of the transcoder. * can be converted into the destination encoding of the transcoder.