ruby-changes:21992
From: nobu <ko1@a...>
Date: Wed, 14 Dec 2011 15:28:46 +0900 (JST)
Subject: [ruby-changes:21992] nobu:r34041 (trunk, ruby_1_9_3): * transcode.c (str_encode): about the extension of :fallback
nobu 2011-12-14 15:28:32 +0900 (Wed, 14 Dec 2011) New Revision: 34041 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34041 Log: * transcode.c (str_encode): about the extension of :fallback option since 1.9.3. Modified files: branches/ruby_1_9_3/ChangeLog branches/ruby_1_9_3/transcode.c trunk/ChangeLog trunk/transcode.c Index: ChangeLog =================================================================== --- ChangeLog (revision 34040) +++ ChangeLog (revision 34041) @@ -1,3 +1,8 @@ +Wed Dec 14 15:28:31 2011 Nobuyoshi Nakada <nobu@r...> + + * transcode.c (str_encode): about the extension of :fallback + option since 1.9.3. + Wed Dec 14 12:19:59 2011 Nobuyoshi Nakada <nobu@r...> * load.c (load_unlock): release loading barrier and then remove it Index: transcode.c =================================================================== --- transcode.c (revision 34040) +++ transcode.c (revision 34041) @@ -2828,7 +2828,9 @@ * Sets the replacement string to the given value. The default replacement * string is "\uFFFD" for Unicode encoding forms, and "?" otherwise. * :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 * of current transcoder. Its value can be any encoding until it * can be converted into the destination encoding of the transcoder. Index: ruby_1_9_3/ChangeLog =================================================================== --- ruby_1_9_3/ChangeLog (revision 34040) +++ ruby_1_9_3/ChangeLog (revision 34041) @@ -1,3 +1,8 @@ +Wed Dec 14 15:28:31 2011 Nobuyoshi Nakada <nobu@r...> + + * transcode.c (str_encode): about the extension of :fallback + option since 1.9.3. + Tue Oct 4 06:43:47 2011 Aaron Patterson <aaron@t...> * ext/psych/lib/psych.rb: update psych version. Index: ruby_1_9_3/transcode.c =================================================================== --- ruby_1_9_3/transcode.c (revision 34040) +++ ruby_1_9_3/transcode.c (revision 34041) @@ -2842,7 +2842,9 @@ * Sets the replacement string to the given value. The default replacement * string is "\uFFFD" for Unicode encoding forms, and "?" otherwise. * :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 * of current transcoder. Its value can be any encoding until it * can be converted into the destination encoding of the transcoder. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/