Bug 35597 - [PATCH] Codepage support on J2SE 1.3
Summary: [PATCH] Codepage support on J2SE 1.3
Alias: None
Product: POI
Classification: Unclassified
Component: HPSF (show other bugs)
Version: 3.0-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2005-07-04 16:19 UTC by Daniel Andefors
Modified: 2006-02-03 11:50 UTC (History)
0 users

Patch (unified diff) VariantSupport.java 1.15 (663 bytes, patch)
2005-07-04 16:22 UTC, Daniel Andefors
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Andefors 2005-07-04 16:19:50 UTC
Codepage support for J2SE 1.3 is broken (as documented in HPSF HOW-TO). However,
IMO it doesn't have to be. For example, the encoding "cp1252" will raise a
java.io.UnsupportedEncodingException on J2SE 1.3 but "Cp1252" (with a
capitalized C) will not. I've successfully tested this patch on the following
Sun VMs: 1.3.1_08-b03, 1.4.2_06-b03, 1.5.0_03-b07, 1.6.0-ea-b34.
Comment 1 Daniel Andefors 2005-07-04 16:22:45 UTC
Created attachment 15586 [details]
Patch (unified diff) VariantSupport.java 1.15
Comment 2 Rainer Klute 2006-02-03 20:50:41 UTC
Doing something for J2SE 1.3 isn't worth the effort especially if the risk
remains that applications under younger JREs break.