Skip to content

Commit 944561d

Browse files
committed
Py_FileSystemDefaultEncoding is deprecated in 3.12+
Thus avoid it using the same mechanism that's already being used in similar situations. Signed-off-by: Rodrigo Tobar <[email protected]>
1 parent 772528e commit 944561d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/c/_cffi_backend.c

+4
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@
204204
# define USE_WRITEUNRAISABLEMSG
205205
#endif
206206

207+
#if PY_VERSION_HEX >= 0x030c0000
208+
# define Py_FileSystemDefaultEncoding PyConfig.filesystem_encoding
209+
#endif
210+
207211
/************************************************************/
208212

209213
/* base type flag: exactly one of the following: */

0 commit comments

Comments
 (0)