View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000399 | FreeCAD | Bug | public | 2011-07-06 09:39 | 2011-07-27 21:53 |
Reporter | galou_breizh | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.11 | ||||
Fixed in Version | 0.12 | ||||
Summary | 0000399: cannot use macros with non-standard names | ||||
Description | A macro called 'tést.FCMacro' is not seen in the macro list, neither can the GUI open the file (an empty editor opens). However, from a terminal, doing "freecad tést.FCMacro" let FreeCAD execute the macro. I guess this is because of the "é", not sure. | ||||
Additional Information | OS: Ubuntu Version: FreeCAD 0.12, Libs: 0.12R4241 (Launchpad) | ||||
Tags | encoding, macros | ||||
FreeCAD Information | |||||
|
I can confirm this problem on Ubuntu with Qt 4.6.2. However, on Windows with Qt 4.5.3 everything works fine. Digging further into the issue it seems that Qt's QDir isn't able to locate files with non-ASCII characters. Surprisingly the file dialog shows the file but then when trying to load it QFile also fails. |
|
Hm, I found the actual problem. In the main() function we set LANG and LC_ALL to C which we must do so that OpenCascade works properly. This however makes Qt failing to handle filenames with non-ASCII characters. So, we have to find a better workaround for the OpenCascade stuff... |
|
Hi, a workaround would be to prevent the GUI-user to input a macro name with non-ASCII characters. Is it possible? Gaël |
|
It's possible but I don't want to have this limitation. The problem is really the OpenCascade stuff and I'll check if tmp. setting LANG=C fixes this issue. |
|
Setting LANG=C fixes problems with OCC but affects Qt to use the correct encoding and thus file names are not shown. As a workaround a UTF-8 encoding is set as the default one which seems to fix this problem. |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-07-06 09:39 | galou_breizh | New Issue | |
2011-07-06 09:44 | galou_breizh | Tag Attached: macros | |
2011-07-06 09:45 | galou_breizh | Tag Attached: encoding | |
2011-07-08 18:07 | wmayer | Note Added: 0000925 | |
2011-07-08 18:17 | wmayer | Note Added: 0000926 | |
2011-07-26 07:08 | galou_breizh | Note Added: 0000944 | |
2011-07-26 11:24 | wmayer | Note Added: 0000946 | |
2011-07-27 21:53 | wmayer | Note Added: 0000951 | |
2011-07-27 21:53 | wmayer | Status | new => closed |
2011-07-27 21:53 | wmayer | Resolution | open => fixed |
2011-07-27 21:53 | wmayer | Fixed in Version | => 0.12 |