src: decode native error messages as UTF-8 · nodejs/node@df1f049 · GitHub
Skip to content

Commit df1f049

Browse files
joyeecheungmarco-ippolito
authored andcommitted
src: decode native error messages as UTF-8
The native error messages can sometimes contain e.g. path content that are typically passed in as chars with UTF8-encoded code points. The native error throwing code previously always decode the chars as Latin-1, which would be incorrect. PR-URL: #55024 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 7802170 commit df1f049

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/node_errors.h

Lines changed: 5 additions & 1 deletion

0 commit comments

Comments
 (0)