input/Open: use PathTraitsUTF8 to check UTF-8 path
This commit is contained in:
parent
a9a6a5041b
commit
758e969cb6
@ -34,7 +34,7 @@ InputStream::Open(const char *url,
|
|||||||
Mutex &mutex, Cond &cond,
|
Mutex &mutex, Cond &cond,
|
||||||
Error &error)
|
Error &error)
|
||||||
{
|
{
|
||||||
if (PathTraitsFS::IsAbsolute(url))
|
if (PathTraitsUTF8::IsAbsolute(url))
|
||||||
/* TODO: the parameter is UTF-8, not filesystem charset */
|
/* TODO: the parameter is UTF-8, not filesystem charset */
|
||||||
return OpenLocalInputStream(Path::FromFS(url),
|
return OpenLocalInputStream(Path::FromFS(url),
|
||||||
mutex, cond, error);
|
mutex, cond, error);
|
||||||
|
Loading…
Reference in New Issue
Block a user