Le039 — `\PE\` selector letter outside the legal A.I range

§12.1a encoding/strings (sub-class: lesser-known directives)

P2 — spec deviation (no data loss)

spec-violation encoding

Sources

Description

ISO 10303-21 defines code pages A through I (nine pages) for `\PA\.\PI\` alphabet selectors and `\PE\` as the alphabet-extend directive whose follow byte denotes one of the same nine pages. An out-of-range selector (e.g. `Z`) does not name any defined page; the receiver must reject, fall back, or treat the operand as a literal and resync.

Reproducer recipe

`PRODUCT.name='bad=\PE\Z\S\xx'` — operand `Z` is not in the legal selector range A.I.

Expected kernel behavior

reject with a diagnostic citing the invalid selector; fallback (treat as default page) is acceptable if a warning is emitted.

Notes

**See also**: Le037. Synonyms: "PE selector outside A.I range", "out-of-range page selector letter", "STEP PE with selector Z", "invalid page-selector letter", "code-page letter not in legal set". Provenance tier: bytes-only (Q5 full-corpus 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

Tier-3 assertions

Cross-references

Le037

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Le039: \PE\ selector letter outside the legal A-I range; ISO 10303-21 Ed.3 §6.4.3: \PE\ must be followed by exactly one letter in A-I naming one of the nine ISO 8859 supplementary code pages; operand 'Z' (and any letter outside A-I) does not name a defined page; a receiver must reject the directive or emit a diagnostic and fall back; defect string: 'bad=\PE\Z\S\xx' — the operand 'Z' is out-of-range; parsers that silently accept 'Z' as a code-page selector produce wrong glyphs or pass the directive bytes through verbatim; the out-of-range letter may cause the lexer to desynchronise if it treats the following byte as the next token start; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Le039'),'2;1');
5FILE_NAME('Le039.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('bad=\PE\Z\S\xx','pe-selector-out-of-range-Z','');
12#8999=PERSON('also=\PE\M\S\yy','pe-selector-out-of-range-M','');
13
14ENDSEC;
15END-ISO-10303-21;