mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* encoding.c (rb_filesystem_encindex): use default external encoding
instead of locale encoding in Unix. * ruby.c (process_options): delay inifilesystem encoding initialization after default external encoding initialization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
43bd807c43
commit
1aba3f9d76
3 changed files with 10 additions and 2 deletions
|
@ -1129,7 +1129,7 @@ rb_filesystem_encindex(void)
|
|||
#elif defined __APPLE__
|
||||
idx = rb_utf8_encindex();
|
||||
#else
|
||||
idx = rb_locale_encindex();
|
||||
idx = rb_enc_to_index(rb_default_external_encoding());
|
||||
#endif
|
||||
|
||||
if (rb_enc_registered("filesystem") < 0) enc_alias_internal("filesystem", idx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue