FS#1180dxflib cannot open files with international characters in path or file name
- Type
- Bug
- Status
- Closed
- Resolution
- Fixed
- Category
- dxflib
- Severity
- Low
- Priority
- Low
- Reported version
- 3.8.0
- Operating system
- Windows XP
- Reported
- 2015-02-06 by d_reeve
- Closed
- 2018-06-27 by andrew
- Votes
- 4
- Duplicates
- FS#1771, FS#1357, FS#1251
With dxflib, QCAD cannot open any file with Chinese file name or path name, it popups a "Important Error" dialog.
But the writing ("Save As" command) with Chinese file name or path name is of no problem.
Does it mean dxflib can only handle single byte characters file name/path name?
WinXP, QCAD 3.8.0


Comments (4)
Yes, this is a known limitation of dxflib.
Well, I think that StackOverflow answers solve that issue:
https://stackoverflow.com/questions/396567/is-there-a-standard-way-to-do-an-fopen-with-a-unicode-string-file-path
https://stackoverflow.com/questions/402283/stdwstring-vs-stdstring
It is like doing a #ifndef to detect with SO is running on compiler to choose if it will use fopen or _wfopen and string or wstring.
dxflib is opensource, isn't it? https://github.com/clothbot/dxflib
Limitation + opensource = wait for any developer in the world to fix it (not only original developer)
Note that the problem has already been fixed outside of dxflib on 27.06.2018 13:18:
https://github.com/qcad/qcad/commit/6d3f68856d5df9ae18c0111efeb2c95d7f993250