Skip to content

Commit 5730f6c

Browse files
Release 1.1.6 (#583)
1 parent 99d1204 commit 5730f6c

File tree

19 files changed

+3531
-4158
lines changed

19 files changed

+3531
-4158
lines changed

.github/workflows/build.yml

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ jobs:
5454
uses: actions/checkout@v4
5555

5656
- name: Install opensource COBOL 4J
57+
if: inputs.configure-args == ''
58+
run: |
59+
./configure --prefix=/usr/ CFLAGS=-Werror
60+
make
61+
echo "ARTIFACT_NAME=${{ inputs.os }}" | sed 's/:/-/g' >> "$GITHUB_ENV"
62+
63+
- name: Install opensource COBOL 4J
64+
if: inputs.configure-args != ''
5765
run: |
5866
./configure --prefix=/usr/ CFLAGS=-Werror ${{ inputs.configure-args }}
5967
touch cobj/*.m4

.github/workflows/javadoc.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Run javadoc
22-
working-directory: libcobj
22+
working-directory: libcobj
2323
run: |
24+
./gradlew javadoc
2425
./gradlew javadoc | tee javadoc.log
2526
test "$(grep '[1-9][0-9]* warning' javadoc.log)" = ""

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [1.1.6] - 2025-01-31
8+
9+
### Add
10+
11+
* Compile UTF-8 Source Code
12+
* The latest version of cobj is now able to accept UTF-8 encoded COBOL and generate UTF-8 encoded Java.
713

814
## [1.1.5] - 2024-12-27
915

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-01-31 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>
2+
3+
* opensource COBOL 4J v1.1.6 released.
4+
15
2024-12-27 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>
26

37
* opensource COBOL 4J v1.1.5 released.

NEWS

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ NEWS - user visible changes -*- outline -*-
22

33
-----------------------------------------------------------------------
44

5+
** New Features
6+
7+
(1) Compile UTF-8 Source Code
8+
* The latest version of cobj is now able to accept UTF-8 encoded COBOL and generate UTF-8 encoded Java.
9+
10+
-----------------------------------------------------------------------
11+
512
** New Features
613

714
(1) Convert string literals containing SJIS characters to Java string literals. (#561)

README.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,26 @@ dnf install -y java-21-amazon-corretto-devel gcc make bison flex automake autoco
5252

5353
### Install opensource COBOL 4J
5454
```
55-
curl -L -o opensourcecobol4j-v1.1.5.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.5.tar.gz
56-
tar zxvf opensourcecobol4j-v1.1.5.tar.gz
57-
cd opensourcecobol4j-1.1.5
55+
curl -L -o opensourcecobol4j-v1.1.6.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.6.tar.gz
56+
tar zxvf opensourcecobol4j-v1.1.6.tar.gz
57+
cd opensourcecobol4j-1.1.6
5858
./configure --prefix=/usr/
5959
make
6060
sudo make install
6161
```
6262

63+
In order to install a compiler for UTF-8 encoded COBOL source code, run the following commands.
64+
65+
```
66+
curl -L -o opensourcecobol4j-v1.1.6.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.6.tar.gz
67+
tar zxvf opensourcecobol4j-v1.1.6.tar.gz
68+
cd opensourcecobol4j-1.1.6
69+
./configure --prefix=/usr/
70+
touch cobj/*.m4
71+
make
72+
sudo make install
73+
```
74+
6375
### Set $CLASSPATH
6476
Add /usr/lib/opensourcecobol4j/libcobj.jar to the environment variable $CLASSPATH.
6577
For instance, run the following code in Unix-like systems.
@@ -125,7 +137,7 @@ https://www.oracle.com/java/technologies/downloads/?er=221886#java8-windows
125137
The docker container for opensource COBOL 4J is available.
126138
127139
```bash
128-
docker pull opensourcecobol/opensourcecobol4j:1.1.5
140+
docker pull opensourcecobol/opensourcecobol4j:1.1.6
129141
```
130142

131143
Execute the following commands in order to run the "Hello World" COBOL program.

README_JP.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,26 @@ dnf install -y java-21-amazon-corretto-devel gcc make bison flex automake autoco
4646

4747
### opensource COBOL 4Jのインストール
4848
```
49-
curl -L -o opensourcecobol4j-v1.1.5.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.5.tar.gz
50-
tar zxvf opensourcecobol4j-v1.1.5.tar.gz
51-
cd opensourcecobol4j-1.1.5
49+
curl -L -o opensourcecobol4j-v1.1.6.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.6.tar.gz
50+
tar zxvf opensourcecobol4j-v1.1.6.tar.gz
51+
cd opensourcecobol4j-1.1.6
5252
./configure --prefix=/usr/
5353
make
5454
sudo make install
5555
```
5656

57+
UTF-8のCOBOLソースコード対応版コンパイラをインストールする場合は、下記のコマンドを実行する。
58+
59+
```
60+
curl -L -o opensourcecobol4j-v1.1.6.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.6.tar.gz
61+
tar zxvf opensourcecobol4j-v1.1.6.tar.gz
62+
cd opensourcecobol4j-1.1.6
63+
./configure --prefix=/usr/
64+
touch cobj/*.m4
65+
make
66+
sudo make install
67+
```
68+
5769
### $CLASSPATHの設定
5870
/usr/lib/opensourcecobol4j/libcobj.jarを環境変数$CLASSPATHに追加します。
5971
例えば、Unix系システムで次のコードを実行します。
@@ -114,7 +126,7 @@ Windows版のopensource COBOL 4JはVisual Studioに含まれるCLコンパイラ
114126
opensource COBOL 4JのDockerコンテナを利用できます。
115127
116128
```bash
117-
docker pull opensourcecobol/opensourcecobol4j:1.1.5
129+
docker pull opensourcecobol/opensourcecobol4j:1.1.6
118130
```
119131

120132
以下のコマンドを実行して、"Hello World"のCOBOLプログラムを実行します。

ReleaseNote.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
### Add
22

3-
* Convert string literals containing SJIS characters to Java string literals.
4-
* The older versions convert string literals containing SJIS characters into byte arrays with hexdecimal integers.
5-
* Older versions convert `"日本語"` into `CobolUtil.toBytes((byte)0x93, (byte)0xfa, (byte)0x96, (byte)0x7b, (byte)0x8c, (byte)0xea)`.
6-
* Latest version converts `"日本語"` to `CobolUtil.stringToBytes("日本語")`.
7-
8-
### Fix
9-
10-
* Fix comparisons of COMP data.
11-
* With older versions, comparisons of COMP data are invalid in some cases.
3+
* Compile UTF-8 Source Code
4+
* The latest version of cobj is now able to accept UTF-8 encoded COBOL and generate UTF-8 encoded Java.

0 commit comments

Comments
 (0)