step-examples/12-1a-encoding/Le052.stp
Sources
- Q065/StepData_StepReaderData.cxx:218-272
- N005/ISO 10303-21 Ed.3 §6.4.3.4
Description
The hex run inside `\X2\.\X0\` must be contiguous (multiple of four hex digits). Embedding whitespace between two 4-digit groups is malformed even if it would be a legal continuation in some Java/host string forms.
Reproducer recipe
`'name=\X2\30A2 30A4\X0\rest'` — a space between `30A2` and `30A4`.
Expected kernel behavior
emit `E_BAD_X2_DIRECTIVE`; reject the string or, in lenient mode, drop the whitespace and continue with a warning.
Notes
**See also**: Le005, Le051, Le053. Synonyms: "whitespace inside X2 hex run", "X2 hex broken by space", "X2 groups split by whitespace", "whitespace mid-Unicode-escape", "X2 payload non-contiguous". 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
contains(b'\\X2\\30A2 30A4\\X0\\')
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/* Le052: \X2\...\X0\ (UCS-2) escape: whitespace splits the hex run; ISO 10303-21 Ed.3 §6.4.3.4: hex run inside \X2\...\X0\ must be contiguous (multiple of four hex digits); embedding whitespace between two 4-digit groups is malformed even if it would be legal in some host string forms; defect string: 'name=\X2\30A2 30A4\X0\rest' â space between '30A2' and '30A4'; receiver must emit E_BAD_X2_DIRECTIVE; reject the string or, in lenient mode, drop the whitespace and continue with a warning; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le052'),'2;1'); 5FILE_NAME('Le052.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('name=\X2\30A2 30A4\X0\rest','whitespace-split-x2-hex',''); 12#8999=PERSON('name=\X2\30A230A4\X0\rest','contiguous-x2-hex-ok',''); 13 14ENDSEC; 15END-ISO-10303-21;