tools: don’t emit illegal utf-8 from icutrim/iculslocs
- argv[0] was being emitted into a utf-8 stream, but argv[0] may not be legal utf-8 - fix by not emitting argv[0] (was only for a source comment) - partially resolves https://github.com/nodejs/node/issues/17077 PR-URL: https://github.com/nodejs/node/pull/19756 Fixes: https://github.com/nodejs/node/issues/17077 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
1a5a19d6d4
commit
a820f4155b
@ -271,9 +271,9 @@ int list(const char* toBundle) {
|
||||
if (bf != NULL) { // NOLINT (readability/null_usage)
|
||||
// write the HEADER
|
||||
fprintf(bf,
|
||||
"// Warning this file is automatically generated\n"
|
||||
"// Updated by %s based on %s:%s.txt\n",
|
||||
PROG,
|
||||
"// NOTE: This file was generated during the build process.\n"
|
||||
"// Generator: tools/icu/iculslocs.cc\n"
|
||||
"// Input package-tree/item: %s/%s.res\n",
|
||||
packageName.data(),
|
||||
locale);
|
||||
fprintf(bf,
|
||||
|
Loading…
x
Reference in New Issue
Block a user