Bug 60273 - UnsupportedCharsetException in VBAMacroReader
Summary: UnsupportedCharsetException in VBAMacroReader
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POIFS (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-18 17:59 UTC by Tim Allison
Modified: 2016-10-18 18:25 UTC (History)
0 users



Attachments
smallest triggering doc from govdocs1 (20.50 KB, application/vnd.ms-excel)
2016-10-18 17:59 UTC, Tim Allison
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Allison 2016-10-18 17:59:58 UTC
Created attachment 34387 [details]
smallest triggering doc from govdocs1

Fairly frequent bug in VBAMacroReader according to findings on TIKA-2104:

java.nio.charset.UnsupportedCharsetException: Cp10000
	at java.nio.charset.Charset.forName(Charset.java:531)
	at org.apache.poi.poifs.macros.VBAMacroReader.readMacros(VBAMacroReader.java:302)
	at org.apache.poi.poifs.macros.VBAMacroReader.findMacros(VBAMacroReader.java:155)
	at org.apache.poi.poifs.macros.VBAMacroReader.findMacros(VBAMacroReader.java:160)
	at org.apache.poi.poifs.macros.VBAMacroReader.findMacros(VBAMacroReader.java:160)
	at org.apache.poi.poifs.macros.VBAMacroReader.readMacros(VBAMacroReader.java:116)
Comment 1 Tim Allison 2016-10-18 18:25:07 UTC
r1765490

use CodePageUtil