step-examples/12-1b-header/Lh018.stp
Sources
- 06-nist-sfa S001, 07-stepcode-ifcopenshell T034, 12-adversarial A020
Description
ISO 10303-21 keywords are upper-case. Hand-edited files routinely contain lower-case or mixed-case (`Cartesian_Point`) entity names. Implementations that combine case-insensitive lookup of internal keywords with case-sensitive comparison of attribute-binding names produce two divergent parses for the same file.
Reproducer recipe
`#1=ifcperson($,$,'',$,$,$,$,$);` or `#1=Cartesian_Point('',(0.,0.,0.));`
Expected kernel behavior
per ISO, entity names canonicalize to upper-case before binding; pick one rule (case-insensitive throughout) and apply uniformly. Lenient mode may auto-uppercase with a warning.
Notes
**See also**: Lh030. Synonyms: "lowercase keyword in STEP file", "ifcperson instead of IFCPERSON", "cartesian_point in lowercase", "mixed-case entity name", "STEP entity not all caps".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'cartesian_point') or contains(b'Cartesian_Point') or contains(b'ifcperson')matches(rb'EndSec;|End-Iso-10303-21;|cartesian_point|Cartesian_Point|ifcperson')
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/* Lh018: lower-case / mixed-case entity name in DATA section */ 3/* ISO 10303-21: all keywords and entity names must be upper-case */ 4/* DEFECT: Cartesian_Point is mixed-case; spec requires CARTESIAN_POINT */ 5/* Divergent parse: case-insensitive keyword lookup vs case-sensitive attribute binding */ 6/* Produced by: hand-edited files, some CAD translators */ 7HEADER; 8FILE_DESCRIPTION(('Lh018: lower-case entity name Cartesian_Point in DATA section'),'2;1'); 9FILE_NAME('Lh018.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN')); 11ENDSEC; 12DATA; 13/* DEFECT: Cartesian_Point uses mixed case instead of required CARTESIAN_POINT */ 14#1=Cartesian_Point('',(0.,0.,0.)); 15#2=Cartesian_Point('',(1.,1.,0.)); 16#3=DIRECTION('xdir',(1.,0.,0.)); 17#4=DIRECTION('zdir',(0.,0.,1.)); 18#5=GEOMETRIC_CURVE_SET('lowercase-keyword-shape',(#1,#2)); 19ENDSEC; 20END-ISO-10303-21;