Skip to content

Commit fc41817

Browse files
srl295MylesBorins
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 <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>
1 parent cf2a7e9 commit fc41817

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
@@ -270,9 +270,9 @@ int list(const char* toBundle) {
270270
if (bf != NULL) { // NOLINT (readability/null_usage)
271271
// write the HEADER
272272
fprintf(bf,
273-
"// Warning this file is automatically generated\n"
274-
"// Updated by %s based on %s:%s.txt\n",
275-
PROG,
273+
"// NOTE: This file was generated during the build process.\n"
274+
"// Generator: tools/icu/iculslocs.cc\n"
275+
"// Input package-tree/item: %s/%s.res\n",
276276
packageName.data(),
277277
locale);
278278
fprintf(bf,

0 commit comments

Comments
 (0)