diff options
author | Lars Kanis <[email protected]> | 2020-01-29 15:23:03 +0100 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2020-02-03 08:42:01 -0800 |
commit | a4fca28b805cc8714cad1107424d97b822bf6414 () | |
tree | 607cf0aff28a725583d1e8a69a8544e8fe91512d /encoding.c | |
parent | e7739b600fd3658eaec6ded7190fa997a7dd2d2d (diff) |
Fix description of Encoding.default_(in|ex)ternal
Data written to files is not transcoded per default, but only when default_internal is set. The default for default_internal is nil and doesn't depend on the source file encoding.
Notes: Merged: https://.com/ruby/ruby/pull/2878
-rw-r--r-- | encoding.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1475,7 +1475,7 @@ rb_enc_default_external(void) * encoding may not be valid. Be sure to check String#valid_encoding?. * * File data written to disk will be transcoded to the default external - * encoding when written. * * The default external encoding is initialized by the locale or -E option. */ @@ -1560,8 +1560,7 @@ rb_enc_default_internal(void) * The script encoding (__ENCODING__), not default_internal, is used as the * encoding of created strings. * - * Encoding::default_internal is initialized by the source file's - * internal_encoding or -E option. */ static VALUE get_default_internal(VALUE klass) |