Skip to content

Fix #3956: Accept full-width ideographic space (U+3000) as a COBOL separator - #3966

Merged
squid-protocol merged 4 commits into
mainfrom
fix/3956-cobol-mb-space-separators
Sep 28, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
fix/3956-cobol-mb-space-separators

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Resolves #3956

Defect:
Some Japanese COBOL compilers (like opensourcecobol4j) natively accept the full-width space character (U+3000, \u3000) as a valid lexical separator in COBOL syntax. Because GitGalaxy's boundary extractors relied strictly on [ \t] and [ \t\n] in their regular expressions, data division items containing full-width spaces (e.g., 01<U+3000>F02 PIC X.) were either completely ignored or had trailing clauses silently truncated.

Fix:
This PR updates the COBOL regex boundary definitions in mainframe_boundary.py and file_control.py. By systematically expanding every [ \t] and [ \t\n] character class to include \u3000, the scanner now seamlessly treats ideographic spaces as equivalent to ASCII spaces or tabs, correctly extracting the affected records and restoring full structural visibility for Japanese code estates.

Resolves #3956 by expanding all [ \t] and [ \t\n] whitespace matchers in the COBOL boundary extractors (mainframe_boundary.py and file_control.py) to include the ideographic full-width space (\u3000), restoring record extraction for Japanese open-source COBOL dialects.
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

COBOL: a full-width space (U+3000) separator hides data entries and pictures (opensourcecobol4j dialect)

1 participant