We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21a04ea commit cdcc613Copy full SHA for cdcc613
known-folders.zig
@@ -81,7 +81,7 @@ pub fn getPath(allocator: std.mem.Allocator, folder: KnownFolder) Error!?[]const
81
)) {
82
std.os.windows.S_OK => {
83
defer funcs.CoTaskMemFree(@ptrCast(dir_path_ptr));
84
- const global_dir = std.unicode.utf16leToUtf8Alloc(allocator, std.mem.span(dir_path_ptr)) catch |err| switch (err) {
+ const global_dir = std.unicode.utf16LeToUtf8Alloc(allocator, std.mem.span(dir_path_ptr)) catch |err| switch (err) {
85
error.UnexpectedSecondSurrogateHalf => return null,
86
error.ExpectedSecondSurrogateHalf => return null,
87
error.DanglingSurrogateHalf => return null,
0 commit comments