summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorElvis Pranskevichus <elvis@magic.io>2018-09-22 01:13:16 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-09-22 01:13:16 (GMT)
commit7279b5125e7c5d84a473d250b27d353cb7f6628e (patch)
tree7efa3a9e937f033c1dc3e3a06e7be5006d29ba39 /Misc
parentd64ee1a5ba2007ae5fe085dd3495013d940a51bb (diff)
downloadcpython-7279b5125e7c5d84a473d250b27d353cb7f6628e.zip
cpython-7279b5125e7c5d84a473d250b27d353cb7f6628e.tar.gz
cpython-7279b5125e7c5d84a473d250b27d353cb7f6628e.tar.bz2
bpo-34537: Fix test_gdb:test_strings with LC_ALL=C (GH-9483)
We cannot simply call locale.getpreferredencoding() here, as GDB might have been linked against a different version of Python with a different encoding and coercion policy with respect to PEP 538 and PEP 540. Thanks to Victor Stinner for a hint on how to fix this.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2018-09-21-17-33-41.bpo-34537.GImYtZ.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2018-09-21-17-33-41.bpo-34537.GImYtZ.rst b/Misc/NEWS.d/next/Tests/2018-09-21-17-33-41.bpo-34537.GImYtZ.rst
new file mode 100644
index 0000000..b64a6a7
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2018-09-21-17-33-41.bpo-34537.GImYtZ.rst
@@ -0,0 +1,2 @@
+Fix ``test_gdb.test_strings()`` when ``LC_ALL=C`` and GDB was compiled with
+Python 3.6 or earlier.