[前][次][番号順一覧][スレッド一覧]

ruby-changes:61269

From: Nobuyoshi <ko1@a...>
Date: Sat, 16 May 2020 17:36:54 +0900 (JST)
Subject: [ruby-changes:61269] 9e67a38fde (master): Fallback to built-in UTF-8 for miniruby

https://git.ruby-lang.org/ruby.git/commit/?id=9e67a38fde

From 9e67a38fdea7d8a549f4b216703ad1600554c3cf Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 16 May 2020 17:36:30 +0900
Subject: Fallback to built-in UTF-8 for miniruby

Source code encoding is defaulted to UTF-8 now too.

diff --git a/encoding.c b/encoding.c
index 2bab24a..7dab544 100644
--- a/encoding.c
+++ b/encoding.c
@@ -1376,7 +1376,7 @@ rb_locale_encindex(void) https://github.com/ruby/ruby/blob/trunk/encoding.c#L1376
 {
     int idx = rb_locale_charmap_index();
 
-    if (idx < 0) idx = ENCINDEX_ASCII;
+    if (idx < 0) idx = ENCINDEX_UTF_8;
 
     if (rb_enc_registered("locale") < 0) {
 # if defined _WIN32
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]