Lh012 — Unquoted timestamp in FILE_NAME (timestamp not a STRING)

§12.1b header/numbering

syntax

Sources

Sender

older stepcode versions (#267)

Description

Per spec the timestamp attribute is a STRING. Some generators write it without surrounding apostrophes: `FILE_NAME('out.stp',2013-10-24T12:12:06,..);`. The bare token tokenizes as identifiers/numbers and fails grammar.

Reproducer recipe

`FILE_NAME('out.stp',2013-10-24T12:12:06,(''),(''),'writer','','');`

Expected kernel behavior

reject with "expected STRING at attribute 2" pointing at the unquoted token; offer strict/lenient toggle that re-quotes ISO-8601-shaped tokens with a warning.

Notes

**See also**: Lh011. Synonyms: "unquoted timestamp in FILE_NAME", "STEP date without apostrophes", "bare timestamp parses as identifier", "FILE_NAME date not a STRING", "timestamp tokenizes as numbers".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Lh011

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Lh012: FILE_NAME timestamp is a bare token, not a quoted STRING */
3/* ISO 10303-21 §8: timestamp attribute of FILE_NAME must be a STRING (apostrophe-delimited) */
4/* DEFECT: 2013-10-24T12:12:06 lacks surrounding apostrophes */
5/* The bare token tokenizes as identifiers/numbers and fails the Part-21 grammar */
6/* Produced by older stepcode versions (issue #267) */
7HEADER;
8FILE_DESCRIPTION(('Lh012: unquoted timestamp in FILE_NAME - timestamp not a STRING'),'2;1');
9/* DEFECT: timestamp 2013-10-24T12:12:06 is a bare token, not a quoted STRING */
10FILE_NAME('Lh012.stp',2013-10-24T12:12:06,(''),(''),'cad-research-suite','','');
11FILE_SCHEMA(('AUTOMOTIVE_DESIGN'));
12ENDSEC;
13DATA;
14#1=CARTESIAN_POINT('origin',(0.,0.,0.));
15#2=CARTESIAN_POINT('corner',(1.,1.,0.));
16#3=DIRECTION('xdir',(1.,0.,0.));
17#4=DIRECTION('zdir',(0.,0.,1.));
18#5=GEOMETRIC_CURVE_SET('unquoted-timestamp-shape',(#1,#2));
19ENDSEC;
20END-ISO-10303-21;