step-examples/12-1a-encoding/Le050.stp
Sources
- OCCT MANTIS#0031851
- OCCT MANTIS#0031670
- OCCT MANTIS#0030694 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A document name contains non-ASCII characters (Cyrillic, CJK, Greek). STEP exporter ASCII-encodes the file body but does not escape non-ASCII via `\X2\…\X0\`; the characters are emitted as raw bytes that cause downstream readers to mis-decode or reject.
Reproducer recipe
Document with name `'Тест'` (Cyrillic). Writer emits raw bytes `'\xD0\xA2\xD0\xB5\xD1\x81\xD1\x82'` in an Ed.2-declared file — illegal under Ed.2.
Expected kernel behavior
Heal and accept: writer escapes non-ASCII via the edition-appropriate directive (`\X2\` for Ed.2, raw UTF-8 for Ed.3 with proper FILE_DESCRIPTION declaration). Must not silently drop Unicode.
Notes
**See also**: Le022, Le001. Provenance tier: requires-sibling-pair; bytes alone cannot demonstrate the writer-side dropping; the defect is the differential between the in-memory document name and the bytes the writer emits. Demonstrating this requires both the producer-input state (document with non-ASCII name) and the corrupted output it produces. Synonyms: "Unicode dropped in STEP export", "Cyrillic name lost on write", "non-ASCII silently stripped by writer", "STEP writer drops accented chars", "Unicode characters lost during export".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
requires-sibling-pair — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'ISO-10303-21')
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/* Le050: Unicode characters in STEP export silently dropped; OCCT MANTIS#0031851 / MANTIS#0031670 / MANTIS#0030694: document name contains Cyrillic / CJK / Greek characters; STEP exporter ASCII-encodes the file body but does not escape non-ASCII via \X2\...\X0\ directive; characters emitted as raw UTF-8 bytes in an Ed.2-declared file â illegal under Ed.2; downstream readers mis-decode or reject the file; defect: PRODUCT name 'Test' in Cyrillic emitted as raw bytes \xD0\xA2\xD0\xB5\xD1\x81\xD1\x82 instead of \X2\0422043504410442\X0\; heal and accept: writer must escape non-ASCII via \X2\ for Ed.2, or declare Ed.3 and emit raw UTF-8 with proper FILE_DESCRIPTION; must not silently drop Unicode characters on export; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le050'),'2;1'); 5FILE_NAME('Le050.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#8997=PERSON('ТеÑÑ','cyrillic-raw-bytes',''); 12#8998=PERSON('ÎλÏα','greek-raw-bytes',''); 13#8999=PERSON('\X2\0422043504410442\X0\','cyrillic-x2-escaped',''); 14 15ENDSEC; 16END-ISO-10303-21;