`fread()` doesn't support unicode in file names on Windows

Open
#3,400 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start with the fread() entry point and reproduce the reported IOError on Windows using a path such as D:/测试.csv, then compare it with an equivalent ASCII-only path. Trace the filename handling until the reported file-size lookup; done means fread() can open and process Unicode paths without the missing-file error.

Written by the indexing model from the issue text.

Description

bug

我刚刚开始尝试使用datatable,发现如果文件中含有中文路径,将会出现IOError。
然而同一个文件,在全英文路径下则不会出现这样的问题。
报错信息附在最后。
我不知道,是否已存在了解决方案,我尝试搜过,但没有找到解决方案。

My English is not good. I use machine translation:

I just tried to use datatable, and found that if the file contains a Chinese path, an IOError will appear.
However, for the same file, this problem will not occur in the full English path.
The error information is attached at the end.
I don't know whether there is a solution. I tried to search, but I didn't find a solution.

IOError                                   Traceback (most recent call last)
<timed exec> in <module>

IOError: Unable to obtain size of D:/测试.csv: [errno 2] No such file or directory
Dominant language
C++
Stars
1.9k
Forks
164
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from h2oai/datatable

All issues in h2oai/datatable

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.