diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-11 14:27:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-11 14:27:04 +0000 |
commit | 863989993a44e7a80b083065da194ca10e277321 (patch) | |
tree | 7bc21d8d30660a346025de1b1584b44a95b023c6 /file.c | |
parent | 7cb53ed363159c26e6fdd40d42b683bc1b5707d1 (diff) | |
download | bundler-863989993a44e7a80b083065da194ca10e277321.tar.gz |
file.c: OSX path encoding
* file.c (rb_str_encode_ospath): OS path encoding on Mac OS X is also
fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -239,6 +239,8 @@ rb_str_encode_ospath(VALUE path) if (enc != utf8) { path = rb_str_conv_enc(path, enc, utf8); } +#elif defined __APPLE__ + path = rb_str_conv_enc(path, NULL, rb_utf8_encoding()); #endif return path; } |