From 5f5706c38f3b9c727c55ea081e5110f423bcabda Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 28 Sep 2009 19:24:24 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ encoding.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f8ace75b2f..6fc369454a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Sep 29 04:14:08 2009 NARUSE, Yui + + * encoding.c (rb_filesystem_encoding): On Unix systems, + filesystem encoding should be locale encoding. + [ruby-dev:39393] + Tue Sep 29 04:07:58 2009 NARUSE, Yui * hash.c (rb_f_getenv): use rb_filesystem_str_new_cstr 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; }