From bed23ee6d657f5efd2e1346a239b5783e26838a2 Mon Sep 17 00:00:00 2001
From: Francois Deppierraz <francois@ctrlaltdel.ch>
Date: Fri, 21 May 2010 02:43:13 -0700
Subject: [PATCH] misc/show-tool-versions.py: Display additional Python
 interpreter encoding informations (stdout, stdin and filesystem)

---
 misc/show-tool-versions.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py
index b75824db..e76215c2 100644
--- a/misc/show-tool-versions.py
+++ b/misc/show-tool-versions.py
@@ -13,7 +13,11 @@ def print_platform():
          pass
 
 def print_python_ver():
-    print "python:", sys.version.replace("\n", " ") + ', maxunicode: ' + str(sys.maxunicode)
+    print "python:", sys.version.replace("\n", " "),
+    print ', maxunicode: ' + str(sys.maxunicode),
+    print ', stdout.encoding: ' + str(sys.stdout.encoding),
+    print ', stdin.encoding: ' + str(sys.stdin.encoding),
+    print ', filesystem.encoding: ' + str(sys.getfilesystemencoding())
 
 def print_cmd_ver(cmdlist, label=None):
     try:
-- 
2.45.2