[issue8394] ctypes.dlopen() doesn't support surrogates

STINNER Victor report at bugs.python.org
Mon Apr 19 11:23:35 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

I only fixed UNIX/BSD versions of subprocess/ctypes.dlopen() because it's not possible to open some files with an undecodable filename. On Windows, the file system and Python3 use Unicode, and so there is no such corner case.

On Windows, should we encourage people migrating from byte to character string? Or should we support byte string for backward compatibility or because there is really a corner case where it's not possible to open a file with an unicode string?

See also my msg103565 (Issue #8393, subprocess),

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8394>
_______________________________________


More information about the Python-bugs-list mailing list