This commit is contained in:
Jarred Sumner
2023-09-04 10:19:29 -08:00
parent a113950d41
commit 6adb60197e
7 changed files with 108 additions and 80 deletions

View File

@@ -1494,6 +1494,8 @@ pub fn toWPath(wbuf: []u16, utf8: []const u8) [:0]const u16 {
// TODO: error handling
// if (result.status == .surrogate) {
// }
wbuf[result.count] = 0;
return wbuf[0..result.count :0];
}