From 43bc9c1ef979719fe47462e2ae9e370f65df602a Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 21 Dec 2007 04:22:59 +0000 Subject: fix previous locale_encoding change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 525a3cdb1..66b7aab83 100644 --- a/ruby.c +++ b/ruby.c @@ -145,6 +145,7 @@ locale_encoding(void) if (codeset == Qnil) return rb_default_encoding(); + name = StringValueCStr(codeset); idx = rb_enc_find_index(name); if (idx < 0) return rb_default_encoding(); -- cgit