View Issue Details

IDProjectCategoryView StatusLast Update
0000214FreeCADBugpublic2011-01-31 15:13
Reporterseparent Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionnot fixable 
PlatformWindows 
Summary0000214: Can't import files from directory with non-ascii characters
DescriptionFreeCAD version 0.10 3521, Windows XP SP3. Importing a STEP file from a file located in a directory with a non-ascii character (É) gives "Cannot import file STEP file".
TagsNo tags attached.
FreeCAD Information

Activities

wmayer

2010-11-29 13:16

administrator   ~0000440

This is a limitation of OpenCascade because it doesn't offer a way to use
C++ streams or wide char.

Jriegel

2010-12-08 12:12

administrator   ~0000447

A posibly way is use the old DOS name mangling in Windows. It can, as far as I recall, transform all kind of (long or odd) file name into a form DOS (or Windows) can understand...

On UNIX it would be possible to create a temporary hard (or soft) link to the
file in a place where the path is ok and try load from that....

Jriegel

2010-12-08 12:14

administrator   ~0000448

Its a problem, but not clear if solvable by us...

wmayer

2010-12-11 15:46

administrator   ~0000450

> On UNIX it would be possible to create a temporary hard (or soft) link to the
> file in a place where the path is ok and try load from that...
For UNIX nothing needs to be done because there filenames are UTF-8 encoded and because this can be handled by a char string everything is fine.

On Windows filenames are UCS-2 encoded and thus must be handled with a wchar_t string.

On Mac OS X filenames are UCS-4 encoded whereby I don't have any experience how to handle this internally.

What we need is a way for the IGES/STEP reader/writer to use either a FILE pointer or an std::o/istream. Maybe the new version for OCC 6.4 which should be released in the near future offers this way.

Jriegel

2011-01-31 15:13

administrator   ~0000566

OCC makes fixing not possible

Issue History

Date Modified Username Field Change
2010-11-29 13:15 wmayer New Issue
2010-11-29 13:16 wmayer Note Added: 0000440
2010-11-29 13:16 wmayer Reporter wmayer => separent
2010-12-08 12:12 Jriegel Note Added: 0000447
2010-12-08 12:14 Jriegel Note Added: 0000448
2010-12-08 12:14 Jriegel Status new => acknowledged
2010-12-11 15:46 wmayer Note Added: 0000450
2011-01-31 15:13 Jriegel Note Added: 0000566
2011-01-31 15:13 Jriegel Status acknowledged => closed
2011-01-31 15:13 Jriegel Resolution open => not fixable