QCAD Bugtracker

Attached to Project: QCAD Bugtracker
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:  

https://github.com/qcad/qcad/commit /6d3f68856d5df9ae18c0111efeb2c95d7f99325 0

Admin
Andrew commented on 06.02.2015 08:41
Does it mean dxflib can only handle single byte characters file name/path name?

Yes, this is a known limitation of dxflib.

Ubirajara Bandeira Jr commented on 28.06.2018 11:51

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.

Ubirajara Bandeira Jr commented on 28.06.2018 11:52

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)

Admin
Andrew commented on 28.06.2018 12:35

Note that the problem has already been fixed outside of dxflib on 27.06.2018 13:18:

https://github.com/qcad/qcad/commit/6d3f68856d5df9ae18c0111efeb2c95d7f993250

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing