Python: URI decoding: now properly checking that paths can be encoded in

ASCII (issue #89)
This commit is contained in:
mercierc
2021-11-02 11:17:59 +13:00
parent 405e6ef420
commit 8bd6d6c8e9

View File

@ -173,7 +173,10 @@ def open_uri(uri,
type newviewtype=View,
dms_only=False,
force_file=False):
if not uri.isascii():
raise Exception("Paths must be ASCII characters only")
cdef bytes urib = tobytes(uri)
cdef bytes scheme
cdef tuple dms