- Status Closed
- Percent Complete
- Task Type Bug Report
- Category dxflib
-
Assigned To
QCAD Community - Operating System Windows XP
- Severity Low
- Priority Very Low
- Reported Version 3.8.0
- Due in Version Undecided
-
Due Date
Undecided
-
Votes
4
- Ubirajara Bandeira Jr (27.06.2018)
- Gabriel Risterucci (22.01.2016)
- Stefan Meissner (19.08.2015)
- Husky (12.08.2015)
- Private
Attached to Project: QCAD Bugtracker
Opened by Dylan Reeve - 06.02.2015
Last edited by Andrew - 27.06.2018
Opened by Dylan Reeve - 06.02.2015
Last edited by Andrew - 27.06.2018
FS#1180 - dxflib cannot open files with international characters in path or file name
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
Closed by Andrew
27.06.2018 13:18
Reason for closing: Fixed
Additional comments about closing:
27.06.2018 13:18
Reason for closing: Fixed
Additional comments about closing:
https://github.com/qcad/qcad/commit /6d3f68856d5df9ae18c0111efeb2c95d7f99325 0
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