step-examples/12-1a-encoding/Le046.stp
Sources
- 16-iso-spec ISO 10303-21 Ed.3 §6.4.4 (printable-ASCII string body)
Description
A kernel that does not handle every printable-ASCII byte (0x20.0x7E) correctly inside a single string literal will mis-parse one of: embedded apostrophe (must be doubled as `''`), backslash (legal literal in Ed.2 but begins a directive in Ed.3), `=` / `#` / `;` (token boundary characters at outer scope but legal in strings).
Reproducer recipe
`PRODUCT.name=' !"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_'`<..full printable ASCII..>'` — exactly one occurrence of each printable ASCII byte.
Expected kernel behavior
Heal and accept: round-trip every printable ASCII byte through encode/decode/storage byte-for-byte; in particular preserve doubled apostrophes (`''`) and the literal backslash form per the active edition.
Notes
**See also**: Le036. Synonyms: "string with every printable ASCII", "STEP literal containing all printable bytes", "embedded apostrophe and backslash and =", "round-trip every printable ASCII", "all-ASCII string literal". Provenance tier: bytes-only — defect is context/metadata OCC does not read at BRep load; mutation-test verified oracle-invisible (2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
matches(rb"'[^']* !\"#")contains(b"#$%&")
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 (with defect highlighting)
1ISO-10303-21; 2/* Le046: String literal containing every legal printable ASCII character (0x20..0x7E); ISO 10303-21 Ed.3 §6.4.4: all printable ASCII bytes are legal inside string literals; embedded apostrophe must be doubled (''); embedded backslash is a literal in Ed.2 but begins a directive in Ed.3; token-boundary characters '=' '#' ';' are legal inside string context but mishandled by parsers that do not track string state; defect: kernel that does not handle every printable-ASCII byte correctly will mis-parse one of: '' apostrophe, backslash, '=' '#' ';'; round-trip every printable ASCII byte through encode/decode/storage byte-for-byte; heal and accept; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le046'),'2;1'); 5FILE_NAME('Le046.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#8999=PERSON(' !"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~','all-printable-ascii',''); 12 13ENDSEC; 14END-ISO-10303-21;