STEP file is now opened in binary mode (instead of text mode) to avoid unexpected handling of control symbols inside string constants.
{
FILE* newin ;
if (strlen(nomfic) == 0) return stepin ;
- newin = OSD_OpenFile(nomfic,"r");
+ newin = OSD_OpenFile(nomfic,"rb");
if (newin == NULL) {
return NULL ;
--- /dev/null
+puts "========================"
+puts "0030397: Data Exchange - STEP Reader extension to support entities which have a text description field with not supported symbols"
+puts "========================"
+
+ReadStep D [locate_data_file bug31397.stp]
+
+set state [data c]
+
+if { [regexp "141153" $state] != 1 } {
+ puts "Error : wrong count of transferred roots"
+}
\ No newline at end of file