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.
+ 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.
- TODO: https://go.dev/cl/459455: os/user: lookup Linux users and groups via systemd userdb -
-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.
+