Title: [194498] trunk/Source/WebInspectorUI
Revision
194498
Author
[email protected]
Date
2016-01-02 01:39:56 -0800 (Sat, 02 Jan 2016)

Log Message

[GTK] webkit 2.3.5 build failure with python 3.3.4
https://bugs.webkit.org/show_bug.cgi?id=128971

Reviewed by Michael Catanzaro.

Make sure that the stdin encoding is 'UTF-8' if using Python 3,
otherwise the build will break.

* Scripts/cssmin.py:

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (194497 => 194498)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-01-02 09:17:11 UTC (rev 194497)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-01-02 09:39:56 UTC (rev 194498)
@@ -1,3 +1,15 @@
+2016-01-02  Alberto Garcia  <[email protected]>
+
+        [GTK] webkit 2.3.5 build failure with python 3.3.4
+        https://bugs.webkit.org/show_bug.cgi?id=128971
+
+        Reviewed by Michael Catanzaro.
+
+        Make sure that the stdin encoding is 'UTF-8' if using Python 3,
+        otherwise the build will break.
+
+        * Scripts/cssmin.py:
+
 2016-01-01  Devin Rousso  <[email protected]>
 
         Web Inspector: shadow visual sidebar section can be confused with the box shadow section

Modified: trunk/Source/WebInspectorUI/Scripts/cssmin.py (194497 => 194498)


--- trunk/Source/WebInspectorUI/Scripts/cssmin.py	2016-01-02 09:17:11 UTC (rev 194497)
+++ trunk/Source/WebInspectorUI/Scripts/cssmin.py	2016-01-02 09:39:56 UTC (rev 194498)
@@ -43,4 +43,7 @@
 
 if __name__ == "__main__":
     import sys
+    if sys.version_info[0] == 3 and sys.stdin.encoding != 'UTF-8':
+        import io
+        sys.stdin = io.TextIOWrapper(sys.stdin.buffer, encoding='UTF-8')
     sys.stdout.write(cssminify(sys.stdin.read()))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to