diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-26 08:49:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-26 08:49:31 +0000 |
commit | c4c78f758fd50f2291cbdab221c86ef1ecaafeb9 (patch) | |
tree | 81a936d5de9591657c3b035b127b6bb7744e4d5d /win32/file.c | |
parent | e9b8488fe5ebef4b4637fe0ab6a6a857f8ff6495 (diff) |
win32/file.c: fix target encoding
* win32/file.c (fix_string_encoding): fix target encoding. the
parameter `encoding' is not the target encoding but the original
encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/file.c')
-rw-r--r-- | win32/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/file.c b/win32/file.c index c9e014a40f..c9dd8b49a7 100644 --- a/win32/file.c +++ b/win32/file.c @@ -235,7 +235,7 @@ code_page(rb_encoding *enc) return INVALID_CODE_PAGE; } -#define fix_string_encoding(str, encoding) rb_str_conv_enc((str), NULL, (encoding)) +#define fix_string_encoding(str, encoding) rb_str_conv_enc((str), (encoding), rb_utf8_encoding()) /* Replace the last part of the path to long name. |