diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-15 15:40:21 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-15 15:40:21 +0000 |
| commit | 477263e618f1acaf9805130e994642ae3737835c (patch) | |
| tree | 5a18be63df426084182bf15531f1cb43a502cfc2 | |
| parent | 526d43b288d6f91e000b34079ef9dbb1aced298e (diff) | |
merges r21532 from trunk into ruby_1_9_1.
Add rdoc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | transcode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c index b2d6706f7..b01d4a1f0 100644 --- a/transcode.c +++ b/transcode.c @@ -2889,7 +2889,7 @@ econv_s_search_convpath(int argc, VALUE *argv, VALUE klass) } /* - * Check the existence of a convertsion path. + * Check the existence of a conversion path. * Returns the number of converters in the conversion path. * result: >=0:success -1:failure */ @@ -3496,6 +3496,10 @@ econv_primitive_convert(int argc, VALUE *argv, VALUE self) * If a conversion error occur, * Encoding::UndefinedConversionError or * Encoding::InvalidByteSequenceError is raised. + * Encoding::Converter#convert doesn't supply methods to recover or restart + * from these exceptions. + * When you want to handle these conversion errors, + * use Encoding::Converter#primitive_convert. * */ static VALUE |
