Skip to content

Commit cdcc613

Browse files
authored
Fixup deprecated utf16leToUtf8Alloc usage (#51)
1 parent 21a04ea commit cdcc613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

known-folders.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn getPath(allocator: std.mem.Allocator, folder: KnownFolder) Error!?[]const
8181
)) {
8282
std.os.windows.S_OK => {
8383
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) {
84+
const global_dir = std.unicode.utf16LeToUtf8Alloc(allocator, std.mem.span(dir_path_ptr)) catch |err| switch (err) {
8585
error.UnexpectedSecondSurrogateHalf => return null,
8686
error.ExpectedSecondSurrogateHalf => return null,
8787
error.DanglingSurrogateHalf => return null,

0 commit comments

Comments
 (0)