Le010 — `\F\` font-shift directive consumed wrongly

§12.1a encoding/strings (sub-class: `\F\` directive)

P1 — silent data loss

spec-violation encoding

Sources

Description

`\F\` introduces a single-character alternate-font selector (used for CJK font shifts); exactly one letter follows. Tools sometimes embed multi-character font tags as if it were an HTML tag (`\F\bold\F\`).

Reproducer recipe

`'mix\F\katakana hello'` (illegal multi-letter tag).

Expected kernel behavior

reject with diagnostic; ignoring the directive is safer than over-consuming text.

Notes

Synonyms: "F directive consumes too many bytes", "font-shift escape multi-character", "CJK font tag confused with STEP escape", "F directive treated as HTML tag", "font shift directive runs past one letter". 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

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Le010: \F\ font-shift directive consumed wrongly: multi-character tag after \F\; \F\ introduces a single-character alternate-font selector for CJK font shifts; exactly one letter follows — the selector is always a single byte; defect: 'mix\F\katakana hello' treats \F\ like an HTML tag and embeds multi-character text after it before any closing marker; a parser that over-consumes eats trailing characters of the string; the attribute records a truncated or wrong value; receiver must reject with diagnostic; ignoring the directive is safer than over-consuming text; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Le010'),'2;1');
5FILE_NAME('Le010.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('mix\F\katakana hello','multi-char-font-directive','');
12
13ENDSEC;
14END-ISO-10303-21;