summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-15 05:44:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-15 05:44:55 +0000
commit3c3b2fe143943f0a8a11767637088b3ca82c2d53 (patch)
treef68c158bab5afcf55b85cb4f83f609dd7f0eef1f /encoding.c
parent4f703c7dad3e8f765192bbe3d990f9df3afa3ff6 (diff)
* encoding.c (rb_locale_charmap): use ASCII-8BIT in miniruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c
index 46853964e1..d76e8edfb4 100644
--- a/encoding.c
+++ b/encoding.c
@@ -944,7 +944,7 @@ VALUE
rb_locale_charmap(VALUE klass)
{
#if defined NO_LOCALE_CHARMAP
- return Qnil;
+ return rb_str_new2("ASCII-8BIT");
#elif defined HAVE_LANGINFO_H
char *codeset;
codeset = nl_langinfo(CODESET);