From 9d258736b749270d74f6f0460b8c1006c1124e67 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 26 Feb 2026 07:24:08 -0500 Subject: [PATCH 1/4] Add JiraCsv227Test See https://issues.apache.org/jira/browse/CSV-227 --- .../commons/csv/issues/JiraCsv227Test.java | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/test/java/org/apache/commons/csv/issues/JiraCsv227Test.java diff --git a/src/test/java/org/apache/commons/csv/issues/JiraCsv227Test.java b/src/test/java/org/apache/commons/csv/issues/JiraCsv227Test.java new file mode 100644 index 000000000..2b9e335a8 --- /dev/null +++ b/src/test/java/org/apache/commons/csv/issues/JiraCsv227Test.java @@ -0,0 +1,49 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.commons.csv.issues; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.io.IOException; + +import org.apache.commons.csv.CSVFormat; +import org.apache.commons.csv.CSVPrinter; +import org.apache.commons.csv.QuoteMode; +import org.junit.jupiter.api.Test; + +/** + * Tests https://issues.apache.org/jira/browse/CSV-227 + */ +class JiraCsv227Test { + + @Test + public void test() throws IOException { + final StringBuilder out = new StringBuilder(); + try (CSVPrinter printer = new CSVPrinter(out, CSVFormat.DEFAULT.withQuoteMode(QuoteMode.MINIMAL))) { + printer.printRecord("ㅁㅎㄷㄹ", "ㅁㅎㄷㄹ", "", "test2"); + printer.printRecord("한글3", "hello3", "3한글3", "test3"); + printer.printRecord("", "hello4", "", "test4"); + } + // ㅁㅎㄷㄹ,ㅁㅎㄷㄹ,,test2 + // 한글3,hello3,3한글3,test3 + // "",hello4,,test4 + assertEquals("ㅁㅎㄷㄹ,ㅁㅎㄷㄹ,,test2\r\n한글3,hello3,3한글3,test3\r\n\"\",hello4,,test4\r\n", out.toString()); + } +} From c5d2bc1decefdad0a01de3c06dee53c21107a2eb Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 26 Feb 2026 07:34:00 -0500 Subject: [PATCH 2/4] Remove meaningless comments. --- src/site/xdoc/index.xml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index af49476f9..f24175e8c 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -24,12 +24,10 @@ limitations under the License. -

Commons CSV reads and writes files in variations of the Comma Separated Value (CSV) format.

Read the documentation starting with the Javadoc Overview.

-

An overview of the functionality is provided in the @@ -48,7 +46,6 @@ The git repository can be browsed.

-
-

The commons mailing lists act as the main support forum. @@ -101,8 +96,6 @@ For previous releases, see the

Commons CSV was started to unify a common and simple interface for reading and writing CSV files under an ASL license. It has been bootstrapped by a code donation from Netcetera in Switzerland. There are three pre-existing BSD compatible CSV parsers which this component will hopefully make redundant (authors willing):

- - From 533bcca147ffae99cbf967e50a1dcf97f27b0488 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 26 Feb 2026 07:42:42 -0500 Subject: [PATCH 3/4] Document Android compatibility Like PR 597 with better text and a table with links --- src/site/xdoc/index.xml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index f24175e8c..ac5b8cfa9 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -66,12 +66,32 @@ For previous releases, see the Dependency Information

-

The latest code can be checked out from our git repository at https://gitbox.apache.org/repos/asf/commons-csv.git. You can build the component using Apache Maven using mvn clean package.

+
+

+ Apache Commons CSV requires Java 8 or above. +

+ + + + + + + + + + + + + + + +
Commons CSVJavaAndroid
1.10.0+8Android 7.0 (API level 24)
+

The commons developer mailing list is the main channel of communication for contributors. Please remember that the lists are shared between all commons components, so prefix your email by [csv].

From 4edb2cf3021a925a732ebd99a8dd33f1a15536bb Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 26 Feb 2026 07:49:29 -0500 Subject: [PATCH 4/4] Add an "Android Compatibility" section to the web site. --- src/changes/changes.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 2e24024c8..0a702eaec 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -46,6 +46,7 @@ Remove broken website link #577. Fix Apache RAT plugin console warnings. + Add an "Android Compatibility" section to the web site. Bump org.apache.commons:commons-parent from 85 to 96 #573, #595. [test] Bump com.opencsv:opencsv from 5.11.2 to 5.12.0 #558.