diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2021-04-30 13:21:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 13:21:42 (GMT) |
commit | 9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86 (patch) | |
tree | 86ccc15aac78e1225299e09c12215d942b147d6f /configure | |
parent | 4908fae3d57f68694cf006e89fd7761f45003447 (diff) | |
download | cpython-9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86.zip cpython-9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86.tar.gz cpython-9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86.tar.bz2 |
bpo-43667: Fix broken Unicode encoding in non-UTF locales on Solaris (GH-25096)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -15264,6 +15264,22 @@ else $as_echo "no" >&6; } fi +case $ac_sys_system/$ac_sys_release in +SunOS/*) + if test -f /etc/os-release; then + OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release) + if test "x$OS_NAME" = "xOracle Solaris"; then + # bpo-43667: In Oracle Solaris, the internal form of wchar_t in + # non-Unicode locales is not Unicode and hence cannot be used directly. + # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html + +$as_echo "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h + + fi + fi + ;; +esac + # check for endianness { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |