aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-05-14 02:09:44 +0000
committerPJ Fanning <fanningpj@apache.org>2021-05-14 02:09:44 +0000
commita28596d58332b683c2e2b4d9b8de95cc72e40c11 (patch)
tree402f0579c1b9925438ea3e1ae24a01e448eec675 /poi
parent0614835c55f44ab6f3e9b0850ca51e0e53a65a49 (diff)
downloadpoi-a28596d58332b683c2e2b4d9b8de95cc72e40c11.tar.gz
poi-a28596d58332b683c2e2b4d9b8de95cc72e40c11.zip
forbidden api issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889872 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java b/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java
index c9438fd990..4f541ee468 100644
--- a/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java
+++ b/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java
@@ -41,6 +41,7 @@ import org.apache.poi.hssf.HSSFTestDataSamples;
import org.apache.poi.poifs.filesystem.OfficeXmlFileException;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.commons.io.output.NullPrintStream;
+import org.apache.poi.util.LocaleUtil;
import org.apache.poi.util.RecordFormatException;
import org.junit.jupiter.api.Test;
@@ -323,7 +324,7 @@ final class TestOldExcelExtractor {
File file = HSSFTestDataSamples.getSampleFile("testEXCEL_3.xls");
PrintStream save = System.out;
try (UnsynchronizedByteArrayOutputStream out = new UnsynchronizedByteArrayOutputStream();
- PrintStream str = new PrintStream(out, false, StandardCharsets.UTF_8.displayName())) {
+ PrintStream str = new PrintStream(out, false, StandardCharsets.UTF_8.displayName(LocaleUtil.getUserLocale()))) {
System.setOut(str);
OldExcelExtractor.main(new String[] {file.getAbsolutePath()});
String string = out.toString(StandardCharsets.UTF_8);