From 798e86ab3b80c30e01969e3d5096a22ca9b8844a Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Tue, 12 Mar 2024 16:10:19 -0700 Subject: [PATCH] cdef bytes, then cast to wchar_t --- py_gd/py_gd.pyx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/py_gd/py_gd.pyx b/py_gd/py_gd.pyx index dafacc8..2551ab4 100644 --- a/py_gd/py_gd.pyx +++ b/py_gd/py_gd.pyx @@ -78,11 +78,7 @@ cdef FILE* open_file(file_path) except *: IF UNAME_SYSNAME == 'Windows': cdef bytes bytes_flag = "wb".encode('utf-16') - cdef char* char_flag = bytes_flag - cdef bytes bytes_filepath = file_path.encode('utf-16') - # cdef char* char_filename = bytes_filepath - fp = _wfopen( char_filename, char_flag) ELSE: cdef bytes bytes_flag = "wb".encode('ascii')