mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Set default for Encoding.default_external to UTF-8 on Windows (#2877)
* Use UTF-8 as default for Encoding.default_external on Windows * Document UTF-8 change on Windows to Encoding.default_external fix https://bugs.ruby-lang.org/issues/16604
This commit is contained in:
parent
3bf7b999e5
commit
94b6933d1c
Notes:
git
2020-12-08 01:49:11 +09:00
Merged-By: nurse <naruse@airemix.jp>
4 changed files with 11 additions and 6 deletions
|
@ -1684,7 +1684,9 @@ rb_enc_default_external(void)
|
|||
* File data written to disk will be transcoded to the default external
|
||||
* encoding when written, if default_internal is not nil.
|
||||
*
|
||||
* The default external encoding is initialized by the locale or -E option.
|
||||
* The default external encoding is initialized by the -E option.
|
||||
* If -E isn't set, it is initialized to UTF-8 on Windows and the locale on
|
||||
* other operating systems.
|
||||
*/
|
||||
static VALUE
|
||||
get_default_external(VALUE klass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue