summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/encoding.c b/encoding.c
index 2f77f02d08..457d940dd7 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