Bug 51115 - Date format string like "dd\.mm\.yyyy;@" is not handled correctly.
Summary: Date format string like "dd\.mm\.yyyy;@" is not handled correctly.
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.8-dev
Hardware: PC Windows Server 2003
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-25 04:54 UTC by Wu, Fan
Modified: 2011-05-03 05:42 UTC (History)
0 users



Attachments
proposed patch to fix this bug. (707 bytes, patch)
2011-04-25 04:57 UTC, Wu, Fan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wu, Fan 2011-04-25 04:54:47 UTC
For cell A2 in the attached file, its fmt code is "dd\.mm\.yyyy;@". When I tried to call DateFormatter.getFormat(Cell cell) to get the corresponding Format, the backslash was not unescaped.
Comment 1 Wu, Fan 2011-04-25 04:57:27 UTC
Created attachment 26933 [details]
proposed patch to fix this bug.
Comment 2 Nick Burch 2011-05-03 05:42:38 UTC
Thanks, applied (with slight tweak + unit test) in r1098917.