From 54e20b505d370210f05ab567c0d19e9bb51db8a3 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Wed, 5 May 2021 19:27:51 -0400 Subject: [PATCH] doc/go1.17: document fixes for negative rune handling CL 317273 accidentally grouped a fix for bufio, bytes, strings packages into a single entry, but they should be separate ones. Fix that, and document these negative rune handling fixes. The list of fixed functions in package unicode was computed by taking the functions covered by the new TestNegativeRunes test, and including those that fail when tested with Go 1.16.3. For #44513. Updates #43254. Change-Id: I6f387327f83ae52543526dbdcdd0bb5775c678bd Reviewed-on: https://go-review.googlesource.com/c/go/+/317469 Reviewed-by: David Benjamin Reviewed-by: Alexander Rakoczy Trust: Alexander Rakoczy Trust: Dmitri Shuralyov Run-TryBot: Alexander Rakoczy --- doc/go1.17.html | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/doc/go1.17.html b/doc/go1.17.html index 9f334868699dd..9328211c9a984 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -241,13 +241,25 @@

Minor changes to the library

-
bufio, bytes, strings
+
bufio

- TODO: https://golang.org/cl/280492: handle negative runes in WriteRune + The Writer.WriteRune method + now writes the replacement character U+FFFD for negative rune values, + as it does for other invalid runes.

-
+
+ +
bytes
+
+

+ The Buffer.WriteRune method + now writes the replacement character U+FFFD for negative rune values, + as it does for other invalid runes. +

+
+
compress/lzw
@@ -416,6 +428,16 @@

Minor changes to the library

+
strings
+
+

+ The Builder.WriteRune method + now writes the replacement character U+FFFD for negative rune values, + as it does for other invalid runes. +

+
+
+
sync/atomic

@@ -477,7 +499,18 @@

Minor changes to the library

unicode

- TODO: https://golang.org/cl/280493: correctly handle negative runes + The Is, + IsGraphic, + IsLetter, + IsLower, + IsMark, + IsNumber, + IsPrint, + IsPunct, + IsSpace, + IsSymbol, and + IsUpper functions + now return false on negative rune values, as they do for other invalid runes.