§12.1a Encoding & string-literal defects

Encoding pathologies in STEP files: BOMs, lone CR / NUL bytes, high-bit characters, half-escaped strings, and other lexical hazards that production parsers grow tolerance for over time.

55 entries

IDTitleProvenanceExpected validation
Le001UTF-8 BOM at start of `ISO-10303-21;`bytes-sufficientocct=reject/reject gmsh=reject ifc=reject
Le002Edition-default encoding mismatch (Ed.2 ISO-8859-1 vs Ed.3 UTF-8)bytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le004`\X\` (single-byte ISO-8859) escape with bad hex digit count or non-hex inputbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le005`\X2\…\X0\` (UCS-2) escape: 3 hex digits in one groupbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le006`\X4\…\X0\` (UCS-4) escape with hex run not divisible by 8 or containing surrogate code pointsbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le007`\X2\` endianness confusion / lone-surrogate handlingbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le008`\S\X` (8-bit shift) directive: misuse, chaining, or apostrophe-after-`\S\`bytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le009`\P{X}\` page-shift directive: bad selector / state-machine omissionbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le010`\F\` font-shift directive consumed wronglybytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le011`\N\` notation directive misused as C-style newline escapebytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le012Unrecognised backslash control directive in a stringbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le013Apostrophe-doubling escape `''` confused with string terminatorbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le014Apostrophe inside a `\X2\…\X0\` block decoded as string closebytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le015Unterminated string literalbytes-sufficientocct=reject/reject gmsh=reject ifc=schema_n/a
Le016Single backslash inside a string literal (Windows path)bytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le017Raw control character (U+0000.U+001F) in string bodybytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le018Inline newline inside an unterminated literal silently concatenatedbytes-sufficientocct=empty/empty gmsh=empty ifc=reject
Le020String literal exceeds Ed.3 32 769-octet limitbytes-sufficientocct=reject/reject gmsh=reject ifc=schema_n/a
Le021Component name in non-UTF-8 locale encoding (GB18030 / Shift-JIS / cp1251 / DOS850)bytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le022Non-ASCII / Japanese / Greek Unicode in PRODUCT.name via `\X2\…\X0\`bytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le023Locale-dependent decimal separator inside numeric attributebytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le025Empty / blank / single-space NAME silently emptiedbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le026`\X0\` end-marker missing — remainder treated as encoded contentbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le0278-bit characters and case-insensitive keyword tolerance in lexerbytes-sufficientocct=empty/empty gmsh=empty ifc=reject
Le028Stray NUL bytes / DOS `\r\n` line endings inside the filebytes-sufficientocct=empty/empty gmsh=empty ifc=reject
Le029Header `FILE_DESCRIPTION` strings containing commas or parentheses (regex-split bug)bytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le030`\PE\` selector and `\Q\x` directive supportbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le031UTF-16 / UTF-32 BOM mistaken for an ASCII filebytes-sufficientocct=reject/reject gmsh=reject ifc=reject
Le032`\X2\…\X0\` or `\N\` escape spanning a physical line breakbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le035Encoding directives emitted in Ed.3 UTF-8 file unnecessarilybytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le036Round-trip loss of `\X2\` content through XML / DB layerrequires-sibling-pairocct=empty/empty gmsh=empty ifc=schema_n/a
Le037`\PE\` alphabet-extension directive switching to a non-Latin code page mid-stringbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le038Bare `\PE\` directive at end-of-string with no operand letterbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le039`\PE\` selector letter outside the legal A.I rangebytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le040`\Q\` numeric-character-reference at the upper Unicode boundary (U+10FFFF)bytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le041`\Q\` encoding a code point in the UTF-16 surrogate range (U+D800.U+DFFF)bytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le042`\Q\` payload contains non-decimal charactersbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le043`\X4\` with a valid supplementary-plane code point followed by a short trailing hex runbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le044`\X2\` payload containing UTF-16 surrogate halvesbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le045String literal at the Edition-3 length limit (32768 characters)bytes-sufficientocct=reject/reject gmsh=reject ifc=schema_n/a
Le046String literal containing every legal printable ASCII characterbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le047REAL literal at IEEE-754 subnormal / minimum-normal / maximum boundariesbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le048REAL literal exceeding double range (overflow → +Inf / underflow → 0)bytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le049Carriage-return stripping during STEP file writerequires-sibling-pairocct=empty/empty gmsh=empty ifc=schema_n/a
Le050Unicode characters in STEP export silently droppedrequires-sibling-pairocct=empty/empty gmsh=empty ifc=schema_n/a
Le051`\X2\…\X0\` (UCS-2) escape: missing `\X0\` terminatorbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le052`\X2\…\X0\` (UCS-2) escape: whitespace splits the hex runbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le053`\X2\…\X0\` (UCS-2) escape: nested `\X2\` opened without closing the priorbytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le054High-bit byte ambiguous between Windows-1252 and ISO-8859-1bytes-onlyocct=empty/empty gmsh=empty ifc=schema_n/a
Le055Boolean lexeme written as `.TRUE.` / `.FALSE.` instead of canonical `.T.` / `.F.`bytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le056Mixed `.T.` and `.TRUE.` boolean lexemes within one filebytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le057Records terminated with `;\n` plus extra blank lines between recordsbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le058Final record before `ENDSEC;` lacks trailing newline at EOFbytes-sufficientocct=empty/empty gmsh=empty ifc=schema_n/a
Le059German umlauts in `PRODUCT.name` mis-decoded by reader (Latin-1/UTF-8 confusion)bytes-sufficientocct=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Le060OCCT #1318: STEP writer infinite loop on oversized raw string with indentation prefixbytes-sufficientocct=shape(1)/shape(1) gmsh=shape(54) ifc=schema_n/a