From: qmuntal Date: Fri, 2 Jun 2023 08:25:20 +0000 (+0200) Subject: doc/go1.21: document that os.TempDir now uses GetTempPath2W X-Git-Tag: go1.21rc1~114 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ae71a862b10264ecb56ba5ff3e3f27f439de4ccc;p=gostls13.git doc/go1.21: document that os.TempDir now uses GetTempPath2W Updates #56899 Change-Id: Ibde69cd55c81ac0bb757b28b28d69463778dd117 Reviewed-on: https://go-review.googlesource.com/c/go/+/500255 Reviewed-by: Michael Knyszek TryBot-Result: Gopher Robot Run-TryBot: Quim Muntal Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go1.21.html b/doc/go1.21.html index 8e9b170882..1c7fb9ec5c 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -745,6 +745,15 @@ Do not send CLs removing the interior tags from such phrases. an error indicating that the file does not exist.

+

+ On Windows calling + TempDir now uses + GetTempPath2W when available, instead of GetTempPathW. The + new behavior is a security hardening measure that prevents + temporary files created by processes running as SYSTEM to + be accessed by non-SYSTEM processes. +

+

On Windows the os package now supports working with files whose names, stored as UTF-16, can't be represented as valid UTF-8.