]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Window...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 15 Jul 2021 20:09:55 +0000 (13:09 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 20:09:55 +0000 (22:09 +0200)
commit95596d5921eeab9ae49f0dc31263a249013b6849
tree40f0fddaa382815e9a8244e3a23b11142837517c
parent421b543311c2eee67482bba894e475a2696423d5
bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows (GH-27161) (#27170)

GH-23638 introduced a new test for Accept: headers in CGI HTTP servers. This test serializes all of os.environ on the server side. For non-UTF8 locales this can fail for some Unicode characters found in environment variables. This change fixes the HTTP_ACCEPT test.
(cherry picked from commit 82b218f36ce6ef910bda5af227a9fd5be613c94f)

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Lib/test/test_httpservers.py