[bug-62857] support locale

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897735 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-02-03 18:27:37 +00:00
parent 6200f79758
commit 400a0862f3
2 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,7 @@ dependencies {
testImplementation 'org.openjdk.jmh:jmh-generator-annprocess:1.34'
testImplementation 'com.google.guava:guava:31.0.1-jre'
testImplementation 'org.tukaani:xz:1.9'
testImplementation 'com.github.rzymek:opczip:1.2.0'
// prevent slf4j warnings coming from xmlsec -> slf4j-api 1.7.x dependency
// see https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/

View File

@ -20,6 +20,7 @@ import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFFormulaEvaluator;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.util.LocaleUtil;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.util.Locale;
@ -120,6 +121,7 @@ final class TestNumericFunction {
}
@Test
@Disabled("fails on some Java Runtimes (kr. apprears at start of result in some JREs)")
void testDOLLARDenmark() {
Locale defaultLocale = LocaleUtil.getUserLocale();
try {