aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Kanis <larskanis@gmail.com>2017-05-11 20:40:57 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-04 09:03:46 +0900
commit93116569145bbff34355e08722c6689487d8b858 (patch)
tree076fd49a7621eeb6ee6534860310bb300fe9b18e
parent636a4fad1617699350ec70d5523a92e8148d5c35 (diff)
downloadruby-93116569145bbff34355e08722c6689487d8b858.tar.gz
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
-rw-r--r--encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c
index 908a6458a0..d6fc9349db 100644
--- a/encoding.c
+++ b/encoding.c
@@ -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