Skip to content

Commit 53d7fbb

Browse files
srl295targos
authored andcommitted
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 #17077 PR-URL: #19756 Fixes: #17077 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Nikolai Vavilov <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a0a5873 commit 53d7fbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/icu/iculslocs.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ int list(const char* toBundle) {
271271
if (bf != NULL) { // NOLINT (readability/null_usage)
272272
// write the HEADER
273273
fprintf(bf,
274-
"// Warning this file is automatically generated\n"
275-
"// Updated by %s based on %s:%s.txt\n",
276-
PROG,
274+
"// NOTE: This file was generated during the build process.\n"
275+
"// Generator: tools/icu/iculslocs.cc\n"
276+
"// Input package-tree/item: %s/%s.res\n",
277277
packageName.data(),
278278
locale);
279279
fprintf(bf,

0 commit comments

Comments
 (0)