src: use UTF-8 for task runner filesystem paths · nodejs/node@044402c · GitHub
Skip to content

Commit 044402c

Browse files
Archkonaduh95
authored andcommitted
src: use UTF-8 for task runner filesystem paths
Use ConvertPathToUTF8() instead of path::string() when passing filesystem paths to Node and libuv interfaces. This prevents paths containing characters outside the active Windows code page from being corrupted or rejected. Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com> PR-URL: #64868 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
1 parent 1864175 commit 044402c

2 files changed

Lines changed: 55 additions & 12 deletions

File tree

src/node_task_runner.cc

Lines changed: 13 additions & 12 deletions

test/parallel/test-node-run.js

Lines changed: 42 additions & 0 deletions

0 commit comments

Comments
 (0)