Title: [167669] trunk/Tools
- Revision
- 167669
- Author
- g...@gnome.org
- Date
- 2014-04-22 11:12:56 -0700 (Tue, 22 Apr 2014)
Log Message
[GTK] Fails to build documentation when output is redirected
https://bugs.webkit.org/show_bug.cgi?id=131178
Reviewed by Martin Robinson.
* gtk/generate-gtkdoc: set the output for stdout and stderr to UTF-8
explicitly to avoid encoding issues when they are redirected.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (167668 => 167669)
--- trunk/Tools/ChangeLog 2014-04-22 18:08:53 UTC (rev 167668)
+++ trunk/Tools/ChangeLog 2014-04-22 18:12:56 UTC (rev 167669)
@@ -1,3 +1,13 @@
+2014-04-22 Gustavo Noronha Silva <g...@gnome.org>
+
+ [GTK] Fails to build documentation when output is redirected
+ https://bugs.webkit.org/show_bug.cgi?id=131178
+
+ Reviewed by Martin Robinson.
+
+ * gtk/generate-gtkdoc: set the output for stdout and stderr to UTF-8
+ explicitly to avoid encoding issues when they are redirected.
+
2014-04-22 ChangSeok Oh <changseok...@collabora.com>
[GTK] YCM choose a newer compile_commands.json in between Release or Debug
Modified: trunk/Tools/gtk/generate-gtkdoc (167668 => 167669)
--- trunk/Tools/gtk/generate-gtkdoc 2014-04-22 18:08:53 UTC (rev 167668)
+++ trunk/Tools/gtk/generate-gtkdoc 2014-04-22 18:12:56 UTC (rev 167669)
@@ -19,6 +19,7 @@
from ConfigParser import SafeConfigParser
import argparse
+import codecs
import common
import glob
import gtkdoc
@@ -27,6 +28,9 @@
import sys
import webkitdom
+sys.stdout = codecs.getwriter("utf-8")(sys.stdout)
+sys.stderr = codecs.getwriter("utf-8")(sys.stderr)
+
def configure_logging(verbose):
level = logging.DEBUG if verbose else logging.INFO
logger = logging.getLogger('gtkdoc')
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes