Repository navigation
Fix #3956: Accept full-width ideographic space (U+3000) as a COBOL separator - #3966
Merged
Merged
Conversation
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.
Contributor
This was referenced Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.pyandfile_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.