[WPT Import] Handle Unicode commit subjects correctly
Use a Unicode template string for formatting commit lists, because the commit subjects can contain non-ASCII characters (and they are Unicode strings because the underlying host.executive automatically decodes the subprocess outputs by default). There are definitely other places that might break when seeing non-ASCII characters, but nothing can be found around here. By the way, MockExecutive is changed to match Executive more closely: run_command now decodes the output and returns a Unicode string by default. This change isn't required to fix the bug, and doesn't catch other bugs for now, but hopefully it might be useful in the future. Bug: 827502 Change-Id: Ib46bfe4cc18d23c2298dfd44bb6ab907dd83e987 Reviewed-on: https://chromium-review.googlesource.com/998676Reviewed-by:Quinten Yearsley <qyearsley@chromium.org> Commit-Queue: Robert Ma <robertma@chromium.org> Cr-Commit-Position: refs/heads/master@{#548608}
Showing
Please register or sign in to comment