From 68d292a968587303056e2bbbf5d0c921aa0c466b Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Sat, 5 Jun 2010 09:29:32 -0700
Subject: [PATCH] setup: have the buildbots print out
 locale.getpreferredencoding(), locale.getdefaultlocale(), locale.getlocale(),
 and os.path.supports_unicode_filenames Even though that latter one is
 completely useless, I'm curious.

---
 misc/show-tool-versions.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py
index e76215c2..d1c98b26 100644
--- a/misc/show-tool-versions.py
+++ b/misc/show-tool-versions.py
@@ -1,6 +1,6 @@
 #! /usr/bin/env python
 
-import os, subprocess, sys
+import locale, os, subprocess, sys
 
 def print_platform():
     try:
@@ -17,7 +17,11 @@ def print_python_ver():
     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())
+    print ', filesystem.encoding: ' + str(sys.getfilesystemencoding()),
+    print ', locale.getpreferredencoding: ' + str(locale.getpreferredencoding()),
+    print ', os.path.supports_unicode_filenames: ' + str(os.path.supports_unicode_filenames),
+    print ', locale.defaultlocale: ' + str(locale.getdefaultlocale()),
+    print ', locale.locale: ' + str(locale.getlocale())
 
 def print_cmd_ver(cmdlist, label=None):
     try:
-- 
2.45.2