From f0e91e54a35806573b2b1a5ab20b8e0511e29ede Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 12 Jan 2009 17:28:40 +0000 Subject: [PATCH] describe Encoding.find("locale") in rdoc of Encoding.locale_charmap. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- encoding.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/encoding.c b/encoding.c index f0411d16ee..6c70c74137 100644 --- a/encoding.c +++ b/encoding.c @@ -1207,6 +1207,11 @@ set_default_internal(VALUE klass, VALUE encoding) * LANG=ja * Encoding.locale_charmap => "eucJP" * + * The result is higly platform dependent. + * So Encoding.find(Encoding.locale_charmap) may cause an error. + * If you need some encoding object even for unknown locale, + * Encoding.find("locale") can be used. + * */ VALUE rb_locale_charmap(VALUE klass)