From acc61cbf4a6520904f8253c2ecf6b6665fe20e89 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 12 Sep 2022 14:59:45 +0200 Subject: [PATCH] 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. * 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]]