| Index: tools/profile_chrome/trace_packager.py
|
| diff --git a/tools/profile_chrome/trace_packager.py b/tools/profile_chrome/trace_packager.py
|
| index d880f7b096a00cdf04dbdd41b483296d2e9ff492..4ec3f9ad2ead471029b9807e773119e843cf3dc5 100644
|
| --- a/tools/profile_chrome/trace_packager.py
|
| +++ b/tools/profile_chrome/trace_packager.py
|
| @@ -2,6 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import codecs
|
| import gzip
|
| import json
|
| import os
|
| @@ -21,7 +22,7 @@ from trace_viewer.build import trace2html
|
|
|
|
|
| def _PackageTracesAsHtml(trace_files, html_file):
|
| - with open(html_file, 'w') as f:
|
| + with codecs.open(html_file, mode='w', encoding='utf-8') as f:
|
| trace2html.WriteHTMLForTracesToFile(trace_files, f)
|
| for trace_file in trace_files:
|
| os.unlink(trace_file)
|
|
|