Skip to content

Conversation

@yutaro-sakamoto
Copy link
Contributor

In order to improve the readability of generated Java code, this pull request modifies codegen.c so that cobj converts string literals containing no non-SJIS character to ordinary Java string literals.

For example, the older compiler converts "日本語" in COBOL source code to CobolUtil.toBytes((byte)0x93, (byte)0xfa, (byte)0x96, (byte)0x7b, (byte)0x8c, (byte)0xea) in Java source code.
This pull request causes the compiler to converts "日本語" in COBOL source code to CobolUtil.stringToBytes("日本語")

@yutaro-sakamoto yutaro-sakamoto marked this pull request as ready for review December 12, 2024 07:54
@yutaro-sakamoto yutaro-sakamoto mentioned this pull request Dec 23, 2024
@yutaro-sakamoto yutaro-sakamoto requested review from kio-watanabe and removed request for n-isaka December 26, 2024 05:24
@yutaro-sakamoto yutaro-sakamoto merged commit 3acf3e4 into opensourcecobol:develop Dec 27, 2024
333 checks passed
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.

2 participants