summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-28 19:24:24 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-28 19:24:24 +0000
commit5f5706c38f3b9c727c55ea081e5110f423bcabda (patch)
tree9b1a5dc5d6ec46b0190b63ac2f99a3ed1eac264f /encoding.c
parente0af046ad04127f419b2b9696694eb2efca130fc (diff)
* encoding.c (rb_filesystem_encoding): On Unix systems,
filesystem encoding should be locale encoding. [ruby-dev:39393] and see also [ruby-dev:35617] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c
index a7594aa378..c8fa8ee5ed 100644
--- a/encoding.c
+++ b/encoding.c
@@ -1104,7 +1104,7 @@ rb_filesystem_encoding(void)
#elif defined __APPLE__
enc = rb_utf8_encoding();
#else
- enc = rb_default_external_encoding();
+ enc = rb_locale_encoding();
#endif
return enc;
}