diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 02:52:23 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 02:52:23 +0000 |
commit | 0530cf9ff88c13a69c95519139f75b87d097707c (patch) | |
tree | 34013f4a6bcb3b369f92fc26efb2af2c3ecccdaf /include/ruby | |
parent | 685cc0f7c4c85877ccbb2804bdbb15280b049445 (diff) | |
download | ruby-0530cf9ff88c13a69c95519139f75b87d097707c.tar.gz |
* encoding.c: include locale.h
(rb_locale_charmap): new method Encoding.locale_charmap for
nl_langinfo(CODESET).
* include/ruby/encoding.h (rb_locale_charmap): declared.
* main.c (main): call setlocale with LC_CTYPE.
* ruby.c (locale_encoding): use rb_locale_charmap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/encoding.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index eb27dfb625..1c45abb4bb 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -117,5 +117,6 @@ rb_encoding *rb_default_encoding(void); rb_encoding *rb_default_external_encoding(void); VALUE rb_enc_default_external(void); void rb_enc_set_default_external(VALUE encoding); +VALUE rb_locale_charmap(VALUE klass); #endif /* RUBY_ENCODING_H */ |