mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* encoding.c (rb_filesystem_encindex): add fallback to
ASCII-8BIT on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e83d7c4eca
commit
0859e7cb87
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Nov 6 09:29:32 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* encoding.c (rb_filesystem_encindex): add fallback to
|
||||
ASCII-8BIT on Windows.
|
||||
|
||||
Fri Nov 6 07:29:07 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* test/ruby/test_case.rb: merged r25658 from ruby_1_8.
|
||||
|
|
|
@ -1125,6 +1125,7 @@ rb_filesystem_encindex(void)
|
|||
char cp[sizeof(int) * 8 / 3 + 4];
|
||||
snprintf(cp, sizeof cp, "CP%d", AreFileApisANSI() ? GetACP() : GetOEMCP());
|
||||
idx = rb_enc_find_index(cp);
|
||||
if (idx < 0) idx = rb_ascii8bit_encindex();
|
||||
#elif defined __APPLE__
|
||||
idx = rb_utf8_encindex();
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue