diff options
Diffstat (limited to 'Build/source/texk/kpathsea/readable.c')
-rw-r--r-- | Build/source/texk/kpathsea/readable.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/readable.c b/Build/source/texk/kpathsea/readable.c index d62957e5ba0..181b80c3b87 100644 --- a/Build/source/texk/kpathsea/readable.c +++ b/Build/source/texk/kpathsea/readable.c @@ -40,7 +40,9 @@ static boolean READABLE(const_string fn, unsigned int st) { - if ((st = GetFileAttributes(fn)) != 0xFFFFFFFF) { + wchar_t *fnw; + fnw = get_wstring_from_fsyscp(fn, fnw=NULL); + if ((st = GetFileAttributesW(fnw)) != 0xFFFFFFFF) { /* succeeded */ errno = 0; } else { @@ -56,6 +58,7 @@ READABLE(const_string fn, unsigned int st) break; } } + free(fnw); return ((st != 0xFFFFFFFF) && !(st & FILE_ATTRIBUTE_DIRECTORY)); } |