diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-22 02:37:40 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-22 02:37:40 +0000 |
commit | 114d113d0c023cc8fea77d6356de316c03d17b62 (patch) | |
tree | e58563a59d15dae422f68b7b684a7d5052e46a34 /encoding.c | |
parent | 8fe729a6b0fa50d315729112ab21e71f0d46de96 (diff) | |
download | ruby-114d113d0c023cc8fea77d6356de316c03d17b62.tar.gz ruby-114d113d0c023cc8fea77d6356de316c03d17b62.tar.xz ruby-114d113d0c023cc8fea77d6356de316c03d17b62.zip |
* encoding.c (rb_locale_charmap): win32 support.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/encoding.c b/encoding.c index 2f77f02d0..457d940dd 100644 --- a/encoding.c +++ b/encoding.c @@ -792,6 +792,8 @@ rb_locale_charmap(VALUE klass) char *codeset; codeset = nl_langinfo(CODESET); return rb_str_new2(codeset); +#elif defined _WIN32 + return rb_sprintf("CP%d", GetACP()); #else return Qnil; #endif |