testImport("BREP", shape_path, 259982.297176, 39481.415022205365, 10 ** -5)
shape_path = shutil.copyfile(shape_path, os.path.join(tmp_dir, "solid.brp"))
testImport("BRP", shape_path, 259982.297176, 39481.415022205365, 10 ** -5)
+ shape_path = shutil.copyfile(shape_path, os.path.join(tmp_dir, "pièce.brep"))
+ testImport("BREP", shape_path, 259982.297176, 39481.415022205365, 10 ** -5)
#=========================================================================
# Create a shape imported from STEP
#=========================================================================
void Model_AttributeString::setValue(const std::string& theValue)
{
- TCollection_ExtendedString aValue(theValue.c_str());
+ // Always assume the std::string to be a multi-byte character string
+ // as it can contain accents or other special characters, too!
+ TCollection_ExtendedString aValue(theValue.c_str(), true);
if (!myIsInitialized || myString->Get() != aValue) {
if (myString.IsNull())
myString = TDataStd_Name::Set(myLab, TCollection_ExtendedString());