input/Open: use PathTraitsUTF8 to check UTF-8 path

This commit is contained in:
Max Kellermann 2015-03-05 08:40:30 +01:00
parent a9a6a5041b
commit 758e969cb6

View File

@ -34,7 +34,7 @@ InputStream::Open(const char *url,
Mutex &mutex, Cond &cond,
Error &error)
{
if (PathTraitsFS::IsAbsolute(url))
if (PathTraitsUTF8::IsAbsolute(url))
/* TODO: the parameter is UTF-8, not filesystem charset */
return OpenLocalInputStream(Path::FromFS(url),
mutex, cond, error);