Title: [174309] trunk/Tools
- Revision
- 174309
- Author
- [email protected]
- Date
- 2014-10-04 00:35:47 -0700 (Sat, 04 Oct 2014)
Log Message
[GTK] generate-gtkdoc crashes when generating HTML due to encoding issues
https://bugs.webkit.org/show_bug.cgi?id=135502
Reviewed by Martin Robinson.
When writing to stdout/stderr fails due to a UnicodeDecodeError
exception, try again without encoding the output.
* gtk/gtkdoc.py:
(GTKDoc._run_command):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (174308 => 174309)
--- trunk/Tools/ChangeLog 2014-10-04 07:14:35 UTC (rev 174308)
+++ trunk/Tools/ChangeLog 2014-10-04 07:35:47 UTC (rev 174309)
@@ -1,3 +1,16 @@
+2014-10-04 Carlos Garcia Campos <[email protected]>
+
+ [GTK] generate-gtkdoc crashes when generating HTML due to encoding issues
+ https://bugs.webkit.org/show_bug.cgi?id=135502
+
+ Reviewed by Martin Robinson.
+
+ When writing to stdout/stderr fails due to a UnicodeDecodeError
+ exception, try again without encoding the output.
+
+ * gtk/gtkdoc.py:
+ (GTKDoc._run_command):
+
2014-10-03 Alexey Proskuryakov <[email protected]>
Bugzilla status bubble displays an exception showing attachment 175738
Modified: trunk/Tools/gtk/gtkdoc.py (174308 => 174309)
--- trunk/Tools/gtk/gtkdoc.py 2014-10-04 07:14:35 UTC (rev 174308)
+++ trunk/Tools/gtk/gtkdoc.py 2014-10-04 07:35:47 UTC (rev 174309)
@@ -195,9 +195,15 @@
if print_output:
if stdout:
- sys.stdout.write(stdout.encode("utf-8"))
+ try:
+ sys.stdout.write(stdout.encode("utf-8"))
+ except UnicodeDecodeError:
+ sys.stdout.write(stdout)
if stderr:
- sys.stderr.write(stderr.encode("utf-8"))
+ try:
+ sys.stderr.write(stderr.encode("utf-8"))
+ except UnicodeDecodeError:
+ sys.stderr.write(stderr)
if process.returncode != 0:
raise Exception('%s produced a non-zero return code %i'
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes