Wr007 — Locale-sensitive decimal separator emitted (comma instead of period)

§12.13 writer-pathology (sub-class: numeric formatting)

silent-loss writer

Sources

Sender

Writers that use locale-aware `sprintf` / `std::to_string` without forcing the C locale; reported on Windows builds running with German, French, or other comma-decimal locales

Description

Numeric attributes appear with commas as decimal separator (`1,5` instead of `1.5`) because the writer used a locale-aware formatter. ISO 10303-21 mandates the period (`.`) as the decimal separator; comma-decimal output is malformed. Receivers either fail at the lexer (a `,` mid-number ends the argument and the next field is mis-counted) or, with bizarre tolerance, accept the comma and produce wrong geometry. Bug-reporter language: "commas in numbers", "German locale STEP", "STEP file from European user looks corrupt".

Reproducer recipe

a CARTESIAN_POINT entry with coordinates `(1,5,2,5,3,5)` (intended as `(1.5,2.5,3.5)` but parsed as 6 separate integers).

Expected kernel behavior

reject as malformed with a diagnostic that names the offending attribute and column; do not silently accept comma-decimals because that makes the failure mode geometric rather than syntactic.

Notes

Le023 covers this from the read side; Wr007 documents the producer-side root cause. **OCC behavior**: silently accepts the malformed file (no diagnostic, empty result); kernel mishandling is the documented signal here; the catalog claim above describes the desired future behavior, not what OCC does today. Provenance tier: writer-side (Q5 reclassification 2026-07-01).

Expected validation

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

Provenance tier

writer-side — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Cross-references

Le023

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Wr007: comma decimal separator (locale bug) */
3HEADER;
4FILE_DESCRIPTION(('Wr007 - locale-sensitive comma decimal separator'),'2;1');
5FILE_NAME('Wr007.stp','2026-06-20T00:00:00',('auto-generated'),(''),
6  'auto-generated','','');
7FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
8ENDSEC;
9DATA;
10/* Defect: comma used as decimal separator (intended 1.5, 2.5, 3.5) */
11/* Lexer sees (1,5,2,5,3,5) — 6 separate integer tokens, not 3 reals */
12#1=CARTESIAN_POINT('comma-decimal',(1,5,2,5,3,5));
13#2=GEOMETRIC_CURVE_SET('locale-bug',(#1));
14ENDSEC;
15END-ISO-10303-21;