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

Commit ee0a98b

Browse files
joyeecheungtargos
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 e879c5e commit ee0a98b

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)