step-examples/12-1a-encoding/Le032.stp
Sources
- W032/CAD Exchanger CHANGES v3.24.12, v3.24.13
Description
A pretty-printer or broken splice writes a hex run across a `\r\n` boundary, e.g. `\X2\30A2 30A4\X0\` where the space is actually a CR LF. Per Part-21 §5.2 those bytes are ignored, so a tolerant lexer must accept the split; but many implementations consume the directive byte-greedily and fail on the line-end.
Reproducer recipe
a `STRING` literal `'foo\X2\30A2<CR LF>30A4\X0\bar'` split mid-escape.
Expected kernel behavior
Accept; the Part-21 lexer must be whitespace-tolerant inside escape sequences and string literals. Do not reject.
Notes
**See also**: Le005. Synonyms: "X2 escape split across CRLF", "hex run broken by line break", "directive spanning line break", "STEP escape across newline", "Unicode hex run interrupted by newline".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb'\\X2\\[^\\\\]*\r?\n[^\\\\]*\\X0\\')count(b'\\X2\\') >= 1
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/* Le032: \X2\â¦\X0\ escape spanning a physical CR LF line break; ISO 10303-21 §5.2: whitespace (including CR LF) within a string literal is ignored by the lexer, permitting a hex run to span a line boundary; broken pretty-printers or line-length limiters split \X2\30A2 30A4\X0\ with an actual CR LF between the two 4-digit groups; byte-greedy implementations consume the directive byte-by-byte and fail when they encounter CR (0x0D) inside the hex run; tolerant lexer must skip embedded whitespace inside \X2\ hex runs; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le032'),'2;1'); 5FILE_NAME('Le032.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('foo\X2\30A2 1230A4\X0\bar','x2-split-crlf',''); 13 14ENDSEC; 15END-ISO-10303-21;