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

ruby-changes:73526

From: Benoit <ko1@a...>
Date: Mon, 12 Sep 2022 22:00:38 +0900 (JST)
Subject: [ruby-changes:73526] acc61cbf4a (master): Add NEWS entry for the previous commit

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

From acc61cbf4a6520904f8253c2ecf6b6665fe20e89 Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Mon, 12 Sep 2022 14:59:45 +0200
Subject: Add NEWS entry for the previous commit

---
 NEWS.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/NEWS.md b/NEWS.md
index 407458bbe5..df9d7e42b0 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -98,6 +98,10 @@ Note: We're only listing outstanding class updates. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L98
 
 * Encoding
     * Encoding#replicate has been deprecated and will be removed in 3.3. [[Feature #18949]]
+    * The dummy `Encoding::UTF_16` and `Encoding::UTF_32` encodings no longer
+      try to dynamically guess the endian based on a byte order mark.
+      Use `Encoding::UTF_16BE/UTF_16LE` and `Encoding::UTF_32BE/UTF_32LE` instead.
+      This change speeds up getting the encoding of a String. [[Feature #18949]]
 
 * Enumerator
     * Enumerator.product has been added.  Enumerator::Product is the implementation. [[Feature #18685]]
-- 
cgit v1.2.1


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

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