IV34355: THE IO CONVERTER FOR IBM1047_LF,IBM1141_LF AND IBM924_LF CODEPA GES GIVE INCORRECT MAPPING FOR LINE FEED

Subscribe

You can track all active APARs for this component.

APAR status

Closed as program error.

Error description

Error Message: N/A
.
Stack Trace: N/A
.
The IO converter for IBM1047_LF,IBM1141_LF and IBM924_LF code
pages should give the swapped value of line feed compared to
IBM1047, IBM1141 and IBM924 code pages. However, those code
pages is giving the same value of line feed as IBM1047, IBM1141
and IBM924 code pages.
The correct mapping of IBM1047_LF,IBM1141_LF and IBM924_LF is
as follows:
\u000A <-> 0x25
\u0085 <-> 0x15
The NIO converter for IBM1047_LF,IBM1141_LF and IBM924_LF code
pages are working correctly.

Local fix

The issue can be be work around using the following options:
1. Use NIO converter instead of the IO converter. This work
around is possible if explicitly specifying the codepage in the
application.
2. Use the system property -Dibm.swapLF=true with code pages
IBM1047, IBM1141 and IBM924 . The property is system wide and
cannot be selectively apply to any specific code page.

Problem summary

The IBM1047_LF,IBM1141_LF and IBM924_LF code pages did not
override the charmap array in byte to char conversion and
thereby use the mapping of parent class

Problem conclusion

This defect will be fixed in:
6.0.0 SR13
6.0.1 SR5
7.0.0 SR4
.
JVM has been updated to override the charmap array to get the
correct mapping in IBM1047_LF,IBM1141_LF and IBM924_LF code
pages.