aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-29 19:00:05 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-29 19:00:05 +0000
commitb7d708c3f182b95fdec2b7c870c30424f8b1a2a2 (patch)
tree55604fb35fd5ac7dd795cd533da04d60a5a51847
parent33be01ca4d714d03cdb721abf6bdc6fd58e362d9 (diff)
downloadruby-b7d708c3f182b95fdec2b7c870c30424f8b1a2a2.tar.gz
* win32/file.c (code_page): use cp1252 instead of cp20127 as US-ASCII.
fix [ruby-core:53079] [Bug #7996] reported and patched by mmeltner (Michael Meltner). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog8
-rw-r--r--win32/file.c4
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c5baab1757..a0caf69058 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,16 @@
+Sat Mar 30 03:58:00 2013 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/file.c (code_page): use cp1252 instead of cp20127 as US-ASCII.
+ fix [ruby-core:53079] [Bug #7996]
+ reported and patched by mmeltner (Michael Meltner).
+
Sat Mar 30 03:49:21 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (wrename): use MoveFileExW instead of MoveFileW,
because the latter fails on cross device file move of some
environments.
fix [ruby-core:53492] [Bug #8109]
- reported by mitchellh (Mitchell Hashimoto)
+ reported by mitchellh (Mitchell Hashimoto).
Fri Mar 29 22:09:46 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
diff --git a/win32/file.c b/win32/file.c
index 350f8da182..96fe61bad2 100644
--- a/win32/file.c
+++ b/win32/file.c
@@ -212,9 +212,9 @@ code_page(rb_encoding *enc)
names_ary = rb_funcall(encoding, names, 0);
}
- /* map US-ASCII and ASCII-8bit as code page 20127 (us-ascii) */
+ /* map US-ASCII and ASCII-8bit as code page 1252 (us-ascii) */
if (enc == rb_usascii_encoding() || enc == rb_ascii8bit_encoding()) {
- UINT code_page = 20127;
+ UINT code_page = 1252;
rb_hash_aset(rb_code_page, name_key, INT2FIX(code_page));
return code_page;
}