Use file system encoding.

pull/5162/head
Marco Feuerstein 2023-06-29 14:56:11 +02:00
parent 59f2620164
commit b2cad5c58d
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ def available_formats():
from ctypes import byref
extension_list = structs.String()
_assimp_lib.dll.aiGetExtensionList(byref(extension_list))
return [e[2:].upper() for e in str(extension_list.data, "utf-8").split(";")]
return [e[2:].upper() for e in str(extension_list.data, sys.getfilesystemencoding()).split(";")]
def _finalize_texture(tex, target):
setattr(target, "achformathint", tex.achFormatHint)