diff options
| author | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2014-12-18 17:15:49 +1100 |
|---|---|---|
| committer | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2014-12-18 17:15:49 +1100 |
| commit | 3192e92876a52af87d546186ca52a7594a474fa2 (patch) | |
| tree | e8e9bac56d31f542c8d658d7405bc4a6c9bf021e /tests | |
| parent | 8042adfb585d7f4a1dd6f4e9c77030778d63d2b4 (diff) | |
| parent | c47dc8155bcf7978d0abedd6d439f86d8cddeaa6 (diff) | |
| download | mod_wsgi-4.4.2.tar.gz | |
Merge branch 'release/4.4.2'4.4.2
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/environ.wsgi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/environ.wsgi b/tests/environ.wsgi index 26ce97d..c50c88e 100644 --- a/tests/environ.wsgi +++ b/tests/environ.wsgi @@ -2,6 +2,7 @@ from __future__ import print_function import os import sys +import locale try: from cStringIO import StringIO @@ -67,6 +68,18 @@ def application(environ, start_response): print('PATH: %s' % sys.path, file=output) print(file=output) + print('LANG: %s' % os.environ.get('LANG'), file=output) + print('LC_ALL: %s' % os.environ.get('LC_ALL'), file=output) + print('sys.getdefaultencoding(): %s' % sys.getdefaultencoding(), + file=output) + print('locale.getlocale(): %s' % (locale.getlocale(),), + file=output) + print('locale.getdefaultlocale(): %s' % (locale.getdefaultlocale(),), + file=output) + print('locale.getpreferredencoding(): %s' % locale.getpreferredencoding(), + file=output) + print(file=output) + keys = sorted(environ.keys()) for key in keys: print('%s: %s' % (key, repr(environ[key])), file=output) |
