1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
Lars Kanis 2017-05-11 20:40:57 +02:00 committed by Hiroshi SHIBATA
parent 636a4fad16
commit 9311656914
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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