Skip to content

Commit 3fd368c

Browse files
authored
Fix for non-utf-8 headers in ports (#20616)
utils.read_file can only read unicode files but eg SDL2_gfx has a non unicode header "SDL2_gfxPrimitives_font.h"
1 parent e5bffd1 commit 3fd368c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ports/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def maybe_copy(src, dest):
9090
headers will be "re-installed" but we skip the actual filesystem mods
9191
to avoid racing with other processes that might be reading these files.
9292
"""
93-
if os.path.exists(dest) and utils.read_file(src) == utils.read_file(dest):
93+
if os.path.exists(dest) and utils.read_binary(src) == utils.read_binary(dest):
9494
return
9595
shutil.copyfile(src, dest)
9696

0 commit comments

Comments
 (0)