[
https://issues.apache.org/jira/browse/NET-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rory Winston closed NET-125.
----------------------------
Resolution: Fixed
Fix Version/s: 2.0
You can specify an encoding in 2.0.
> [net] FTP does not work on zos (ebcdic platform)
> ------------------------------------------------
>
> Key: NET-125
> URL: https://issues.apache.org/jira/browse/NET-125
> Project: Commons Net
> Issue Type: Improvement
> Affects Versions: Nightly Builds
> Environment: Operating System: other
> Platform: Other
> Reporter: Stan Long
> Priority: Minor
> Fix For: 2.0
>
>
> This was done with 1.3.0-dev source
> The FromNetAscIIInputStream.java constructor
> has a string version of the line separator seq ("\r\n")
> and also a byte array version created with :
> _lineSeparatorBytes = _lineSeparator.getBytes();
> On an ebcdic platform this will result in garbage in the _lineseparatorBytes
> and subsequent calls to readLine will timeout because that garbage sequence
> will never be in the "control" inputStream (ASCII by definition)
> I bypassed this by adding encoding of ISO-8859-1 to the initialization of
> _lineSeparatorBytes..
> and removing the "final" from the initial declaration
> I also swallowed the (almost not possible) UnsupportedEncodingException.
> There is probably a better way to do this as an "official" fix.
> Thanks in advance
> Stan Long
> [EMAIL PROTECTED]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.