diff options
author | Tim Allison <tallison@apache.org> | 2016-10-18 18:24:39 +0000 |
---|---|---|
committer | Tim Allison <tallison@apache.org> | 2016-10-18 18:24:39 +0000 |
commit | 8e3a70d4b128fd92723a12a8a1184b87fc93586e (patch) | |
tree | 453041f446028210ff88abb555e0da2adb2cf875 /src/testcases/org/apache/poi | |
parent | 2732e72385829cfc1481da94ec0b092ecd01fb88 (diff) | |
download | poi-8e3a70d4b128fd92723a12a8a1184b87fc93586e.tar.gz poi-8e3a70d4b128fd92723a12a8a1184b87fc93586e.zip |
BUG 60273 -- Use codepageutil to get correct charset in VBAMacroReader
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765490 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi')
-rw-r--r-- | src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java b/src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java index a001ad9896..df90c8f444 100644 --- a/src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java +++ b/src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java @@ -272,4 +272,14 @@ public class TestVBAMacroReader { assertNotNull(macros.get("NewMacros")); assertContains(macros.get("NewMacros"), "' dirty"); } + + @Test + public void bug60273() throws IOException { + //test file derives from govdocs1 147240.xls + File f = POIDataSamples.getSpreadSheetInstance().getFile("60273.xls"); + VBAMacroReader r = new VBAMacroReader(f); + Map<String, String> macros = r.readMacros(); + assertNotNull(macros.get("Module1")); + assertContains(macros.get("Module1"), "9/8/2004"); + } } |