]> granicus.if.org Git - python/commit
libpython.py: fix support of non-BMP unicode characters
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 20 May 2010 11:29:45 +0000 (11:29 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 20 May 2010 11:29:45 +0000 (11:29 +0000)
commitb1556c537d7c49978fa40594a9c9f40c6f88cdde
treedee0eb7ce8283451d3e407ce1b299094e93acafd
parent8f692275e9c2cd4e5f7959328f6f9da8538ffe9e
libpython.py: fix support of non-BMP unicode characters

Forward port some code from Python3:

 * join surrogate pairs if sizeof(Py_UNICODE)==2
 * Enable non-BMP test on narrow builds using u"\U0001D121" instead of
   unichr(0x1D121)
Lib/test/test_gdb.py
Tools/gdb/libpython.py