mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* encoding.c (rb_locale_charmap): win32 support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ccc842878d
commit
b507930297
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Dec 22 11:37:06 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* encoding.c (rb_locale_charmap): win32 support.
|
||||||
|
|
||||||
Sat Dec 22 11:31:14 2007 Eric Hodel <drbrain@segment7.net>
|
Sat Dec 22 11:31:14 2007 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* gem_prelude.rb: Place bin dir before lib dir so gem bin stubs work.
|
* gem_prelude.rb: Place bin dir before lib dir so gem bin stubs work.
|
||||||
|
|
|
@ -792,6 +792,8 @@ rb_locale_charmap(VALUE klass)
|
||||||
char *codeset;
|
char *codeset;
|
||||||
codeset = nl_langinfo(CODESET);
|
codeset = nl_langinfo(CODESET);
|
||||||
return rb_str_new2(codeset);
|
return rb_str_new2(codeset);
|
||||||
|
#elif defined _WIN32
|
||||||
|
return rb_sprintf("CP%d", GetACP());
|
||||||
#else
|
#else
|
||||||
return Qnil;
|
return Qnil;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue