From: Zooko O'Whielacronx Date: Sat, 5 Jun 2010 16:29:32 +0000 (-0700) Subject: setup: have the buildbots print out locale.getpreferredencoding(), locale.getdefaultl... X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/COPYING.GPL?a=commitdiff_plain;h=68d292a968587303056e2bbbf5d0c921aa0c466b;p=tahoe-lafs%2Ftahoe-lafs.git 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. --- 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: