- Upstream update to 2.29.5268 * Update dictionaries * Fix crash issue of the candidate window UI - Update zip code dictionaries * Refresh add-sha256sum-for-zipcode-archives.patch - Add patch ibus-mozc-candidate-window-qt-virtual-coordinate.patch * Fix google #823: candidate window position issue on HiDPI displays - Enable to build with Python 3.6 * Add support-python-3.6.patch OBS-URL: https://build.opensuse.org/request/show/1154390 OBS-URL: https://build.opensuse.org/package/show/M17N/mozc?expand=0&rev=114
17 lines
627 B
Diff
17 lines
627 B
Diff
diff --git a/src/base/gen_config_file_stream_data.py b/src/base/gen_config_file_stream_data.py
|
|
index c73a2c6a8..05869fdfd 100644
|
|
--- a/src/base/gen_config_file_stream_data.py
|
|
+++ b/src/base/gen_config_file_stream_data.py
|
|
@@ -69,8 +69,10 @@ def OutputConfigFileStreamData(path_list, output):
|
|
for path in path_list:
|
|
output.write(' {"%s", "' % os.path.basename(path))
|
|
with open(path, 'rb') as stream:
|
|
- while (byte := stream.read(1)):
|
|
+ byte = stream.read(1)
|
|
+ while (byte):
|
|
output.write(r'\x' + byte.hex())
|
|
+ byte = stream.read(1)
|
|
output.write('"},\n')
|
|
output.write('};\n')
|
|
|