Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(907)

Unified Diff: services/icu_data/embed_icu_data.py

Issue 854433002: Update the sha1hash of the ICU data table (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/icu_data/embed_icu_data.py
diff --git a/services/icu_data/embed_icu_data.py b/services/icu_data/embed_icu_data.py
index 0ffbacee8288d6114b438fd3c87ee3ca65537358..515a3bb767b95ee9f11f53b88573460894c24831 100755
--- a/services/icu_data/embed_icu_data.py
+++ b/services/icu_data/embed_icu_data.py
@@ -30,7 +30,7 @@ for i in range(0, len(values), chunk_size):
with open(out_file, "w") as f:
f.write('#include "services/icu_data/data.h"\n')
f.write("namespace icu_data {\n")
- f.write("const char kICUDataTable[] = {\n")
+ f.write("const char kICUDataTable[%d] = {\n" % len(data))
f.write(",\n".join(lines))
f.write("\n};\n")
f.write("const size_t kICUDataTableSize = sizeof(kICUDataTable);\n")

Powered by Google App Engine
This is Rietveld 408576698