You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
COBOL: a full-width space (U+3000) separator hides data entries and pictures (opensourcecobol4j dialect) #3956
Found while preparing the opensourcecobol4j fresh estate (#3806, epic #3803). This was a pre-trial scan with no porting.
Defect
Some Japanese COBOL compilers accept the full-width (ideographic) space U+3000 as a separator, the same as a space. opensourcecobol4j / opensource COBOL do so: mb-space.at tests "Zenkaku SPC delims in headings / record def / COPY stmt" and expects them to compile and run. Other Japanese compilers were not checked. The engine's COBOL separators are [ \t] only, so:
01<U+3000>F02 PIC X.: the entry is missing from record_data;
01 F04 PIC<U+3000>X.: the entry is kept but its picture is lost (empty pic);
01 名前<U+3000>PIC X(40), DATA<U+3000>DIVISION, COPY<U+3000>inc. fail the same way (division headers, COPY members).
On the estate, all 7 mb-space programs of cobol_utf8 / i18n_sjis (9 in i18n_utf8) lose entries. That includes ASCII-named items (F00-F04) that sit behind a U+3000.
This is a dialect feature: it is not verified that IBM Enterprise COBOL treats U+3000 as a separator. It might be gated on the estate's dialect / encoding rather than accepted everywhere. At minimum, the scan should report the entry it could not read instead of dropping it silently.
U+3000 inside a literal ('日本/中国 文字0') is data and must stay as it is.
changed the title [-]COBOL: a full-width space (U+3000) separator hides data entries and pictures (Japanese dialects: opensourcecobol4j, NetCOBOL)[/-][+]COBOL: a full-width space (U+3000) separator hides data entries and pictures (opensourcecobol4j dialect)[/+]on Sep 28, 2026
Activity
[-]COBOL: a full-width space (U+3000) separator hides data entries and pictures (Japanese dialects: opensourcecobol4j, NetCOBOL)[/-][+]COBOL: a full-width space (U+3000) separator hides data entries and pictures (opensourcecobol4j dialect)[/+]Fix #3956: Accept full-width ideographic space (U+3000) as a COBOL se…
Fix #3998: no-scan lineage reads SELECT with the engine's reader (#3999)
Fix #4026: read non-ASCII and END-xxx paragraph/section names in the …
Fix #4026: read non-ASCII and END-xxx paragraph/section names in the …