QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • 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
  • Private
Attached to Project: QCAD Bugtracker
Opened by d_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/q cad/commit/6d3f68856d5df9ae18c0111efeb2c 95d7f993250

Admin
Does it mean dxflib can only handle single byte characters file name/path name?

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)

Admin

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