path: root/transcode.c
diff options
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-14 06:28:32 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-14 06:28:32 (GMT)
commit4474c83a9d2baca7c263009e722c02d105ae9336 (patch)
tree383fa4cbd7dae471c98eb1ec5964b5bf5c71847b /transcode.c
parent8fbf055e330fa7d62184ca5c5155064d7e8ecba4 (diff)
* transcode.c (str_encode): about the extension of :fallback
option since 1.9.3. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
1 files changed, 3 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c
index 15d9f5c..0178ce7 100644
--- a/transcode.c
+++ b/transcode.c
@@ -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
* 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.