Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ public abstract class AbstractCobolField {
static CobolDataStorage lastdata = null;

/** 文字データの符号化に使用するShift_JIS文字セット */
public static Charset charSetSJIS = Charset.forName("SHIFT-JIS");
/**
* Default charset for String/byte[] conversions.
* Configurable via COB_CHARSET environment variable.
* Defaults to SHIFT-JIS for backward compatibility.
*/
public static Charset charSetSJIS =
Charset.forName(System.getenv().getOrDefault("COB_CHARSET", "SHIFT-JIS"));

static final int[] cobExp10 = {
1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000
Expand Down
Loading