Better wording for __ENCODING__
"locale encoding" is misleading since it doesn't mean Encoding.find("locale") but the encoding used to interpret the script file. It's therefore better to call it "script encoding" as in the paragraphs above. Closes: https://github.com/ruby/ruby/pull/1611
This commit is contained in:
parent
636a4fad16
commit
9311656914
@ -1548,7 +1548,7 @@ rb_enc_default_internal(void)
|
||||
* Additionally String#encode and String#encode! use the default internal
|
||||
* encoding if no encoding is given.
|
||||
*
|
||||
* The locale encoding (__ENCODING__), not default_internal, is used as the
|
||||
* 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user