diff options
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. |