Set default for Encoding.default_external to UTF-8 on Windows#2877
Conversation
be25e86 to
43303a5
Compare
43303a5 to
26540d8
Compare
|
I'm fine myself to switch the default encoding to UTF-8, but wonder if the real world use cases are UTF-8 ready on Windows. |
|
Thanks @nobu for responding!
None. I switched to UTF-8 as the default_encoding starting with RubyInstaller-2.7.0-1. This is set per There have been issues with irb/readline in the past, but they are all fixed now. I would like to drop the |
|
Can I do anything to get this merged? |
When ruby changed the `Encoding.default_external` with this PR at ruby/ruby#2877, it broke puppet testing for Japanese Windows. With the default encoding set to UTF-8, both facter and puppet would error. This commit to puppet-runtime will modify the way puppet builds ruby and revert that commit, allowing powershell to use the locale instead of defaulting to utf-8.
See discussion on https://bugs.ruby-lang.org/issues/16604 .