diff options
author | nik-bes <nik-bes@yandex-team.com> | 2023-03-21 06:35:25 +0300 |
---|---|---|
committer | nik-bes <nik-bes@yandex-team.com> | 2023-03-21 06:35:25 +0300 |
commit | dde60d49004ccf33a73fa2ae77274ceef283ed6e (patch) | |
tree | 8bf8ad0d9eead545584acb9167afc96ae32edc92 /contrib | |
parent | 96d19d993b40301c35ff98170f872ad65146ab1c (diff) | |
download | ydb-dde60d49004ccf33a73fa2ae77274ceef283ed6e.tar.gz |
contrib - fix for cython
Sync with master code of cython
https://github.com/cython/cython/commit/5c5d70e7a7f657d94ba1c81767cf313ca58a1fec
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/tools/cython/Cython/Utility/Embed.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/tools/cython/Cython/Utility/Embed.c b/contrib/tools/cython/Cython/Utility/Embed.c index 95bc2da74e..3dfafbdaa7 100644 --- a/contrib/tools/cython/Cython/Utility/Embed.c +++ b/contrib/tools/cython/Cython/Utility/Embed.c @@ -234,7 +234,12 @@ int res = 0; setlocale(LC_ALL, ""); for (i = 0; i < argc; i++) { - argv_copy2[i] = argv_copy[i] = __Pyx_char2wchar(argv[i]); + argv_copy2[i] = argv_copy[i] = +#if PY_VERSION_HEX < 0x03050000 + __Pyx_char2wchar(argv[i]); +#else + Py_DecodeLocale(argv[i], NULL); +#endif if (!argv_copy[i]) res = 1; /* failure, but continue to simplify cleanup */ } setlocale(LC_ALL, oldloc); |