From: Ian Lance Taylor
+ Programs may now pass an empty
On Windows the
- 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
+
- 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
-
-time.Time
value to
+ the Chtimes
function
+ to leave either the access time or the modification time unchanged.
+ File.Chdir>
method
@@ -615,31 +621,21 @@ Do not send CLs removing the interior tags from such phrases.
always returning an error.
Truncate
on a
+ non-existent file used to create an empty file. It now returns
+ an error indicating that the file does not exist.
+
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.
+