From: Ian Lance Taylor Date: Fri, 26 May 2023 23:03:32 +0000 (-0700) Subject: doc/go1.21: mention os package changes X-Git-Tag: go1.21rc1~200 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6e248b8ff2f387b5e4dd16a5b57f7487a2e18c94;p=gostls13.git doc/go1.21: mention os package changes Also mention WTF-8 support in the syscall package. For #32558 For #58977 For #59971 Change-Id: Id1627889b5e498add498748d9bfc69fb58030b35 Reviewed-on: https://go-review.googlesource.com/c/go/+/498600 Reviewed-by: Eli Bendersky TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Run-TryBot: Ian Lance Taylor --- diff --git a/doc/go1.21.html b/doc/go1.21.html index 88200bf33e..3758d282c3 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -608,6 +608,12 @@ Do not send CLs removing the interior tags from such phrases.
os
+

+ Programs may now pass an empty time.Time value to + the Chtimes function + to leave either the access time or the modification time unchanged. +

+

On Windows the File.Chdir> method @@ -615,31 +621,21 @@ Do not send CLs removing the interior tags from such phrases. always returning an error.

-

- TODO: https://go.dev/issue/32558: allow Chtimes with time.Time{} to avoid setting time -

- -

- TODO: https://go.dev/cl/219638: os: make Chtimes accept empty time values to skip file time modification -

-

- TODO: https://go.dev/cl/477215: os: avoid creating a new file in Truncate on Windows; os.Truncate on Windows no longer now fails if the file does not exist, consistent with other platforms + On Windows calling + Truncate on a + non-existent file used to create an empty file. It now returns + an error indicating that the file does not exist.

- TODO: https://go.dev/cl/493036: os, syscall: support ill-formed UTF-16 strings on Windows + On Windows the os package now supports working with files whose + names, stored as UTF-16, can't be represented as valid UTF-8.

-
os/user
-
-

- TODO: https://go.dev/cl/459455: os/user: lookup Linux users and groups via systemd userdb -

-
-
+
reflect
@@ -792,6 +788,17 @@ Do not send CLs removing the interior tags from such phrases. has a new field Jail that may be used to put the newly created process in a jailed environment.

+ +

+ On Windows the syscall package now supports working with files whose + names, stored as UTF-16, can't be represented as valid UTF-8. + The UTF16ToString + and UTF16FromString + functions now convert between UTF-16 data and + WTF-8 strings. + This is backward compatible as WTF-8 is a superset of the UTF-8 + format that was used in earlier releases. +