step-examples/12-1a-encoding/Le012.stp
Sources
- S003/SFA-User-Guide-v7 §7 Fig. 90
Description
A string contains a backslash directive that is not one of the spec-recognised forms (`\X\`, `\X2\…\X0\`, `\X4\…\X0\`, `\S\x`, `\Q\x`, `\PE\`, `\N\n`, `\F\`).
Reproducer recipe
embed `'foo\Z\bar'` in a string-valued attribute.
Expected kernel behavior
reject the directive; recover by passing the bytes through literally with a warning.
Notes
**See also**: Le030. Synonyms: "unknown backslash escape in string", "made-up control directive", "STEP rejects unknown escape", "vendor-extension escape passes through", "non-standard backslash sequence".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'\\Z\\') or contains(b'\\M\\')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Le012: Unrecognised backslash control directive in a string attribute; spec-recognised directives: \X\, \X2\, \X4\, \S\, \Q\, \PE\, \N\, \F\; defect 1: 'foo\Z\bar' â \Z\ is not defined in ISO 10303-21 Table 4; defect 2: 'abc\M\def' â \M\ is also not a recognised directive; these may be vendor extensions; a strict receiver must reject; a tolerant receiver must pass the bytes through literally with a warning; silently accepting without diagnostics is a kernel bug; malformed directive leaves the affected string attribute either truncated or containing wrong code points; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le012'),'2;1'); 5FILE_NAME('Le012.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 10#2=GEOMETRIC_CURVE_SET('',(#1)); 11#8998=PERSON('foo\Z\bar','unknown-Z-directive',''); 12#8999=PERSON('abc\M\def','unknown-M-directive',''); 13 14ENDSEC; 15END-ISO-10303-21;