| Index: third_party/WebKit/Tools/Scripts/webkit-patch
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkit-patch b/third_party/WebKit/Tools/Scripts/webkit-patch
|
| index 060ad71ea413ee535ded6df611ce9be4b600c503..4a0c37edd1dc25e9ca219a920c6da1dc5e14e927 100755
|
| --- a/third_party/WebKit/Tools/Scripts/webkit-patch
|
| +++ b/third_party/WebKit/Tools/Scripts/webkit-patch
|
| @@ -49,7 +49,10 @@ from webkitpy.tool.webkit_patch import WebKitPatch
|
| # the default behaviour of writing to sys.stdout, so we intercept
|
| # the case of writing raw strings and make sure StreamWriter gets
|
| # input that it can handle.
|
| +
|
| +
|
| class ForgivingUTF8Writer(codecs.lookup('utf-8')[-1]):
|
| +
|
| def write(self, object):
|
| if isinstance(object, str):
|
| # Assume raw strings are utf-8 encoded. If this line
|
| @@ -67,6 +70,7 @@ sys.stdout = ForgivingUTF8Writer(sys.stdout)
|
|
|
| _log = logging.getLogger("webkit-patch")
|
|
|
| +
|
| def main():
|
| # This is a hack to let us enable DEBUG logging as early as possible.
|
| # Note this can't be ternary as versioning.check_version()
|
|
|