ruby-changes:2965
From: ko1@a...
Date: 22 Dec 2007 11:37:57 +0900
Subject: [ruby-changes:2965] usa - Ruby:r14456 (trunk): * encoding.c (rb_locale_charmap): win32 support.
usa 2007-12-22 11:37:40 +0900 (Sat, 22 Dec 2007)
New Revision: 14456
Modified files:
trunk/ChangeLog
trunk/encoding.c
Log:
* encoding.c (rb_locale_charmap): win32 support.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14456&r2=14455
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=14456&r2=14455
Index: encoding.c
===================================================================
--- encoding.c (revision 14455)
+++ encoding.c (revision 14456)
@@ -792,6 +792,8 @@
char *codeset;
codeset = nl_langinfo(CODESET);
return rb_str_new2(codeset);
+#elif defined _WIN32
+ return rb_sprintf("CP%d", GetACP());
#else
return Qnil;
#endif
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14455)
+++ ChangeLog (revision 14456)
@@ -1,3 +1,7 @@
+Sat Dec 22 11:37:06 2007 NAKAMURA Usaku <usa@r...>
+
+ * encoding.c (rb_locale_charmap): win32 support.
+
Sat Dec 22 11:31:14 2007 Eric Hodel <drbrain@s...>
* gem_prelude.rb: Place bin dir before lib dir so gem bin stubs work.
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml