You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/09/08 00:27:40 UTC
DO NOT REPLY [Bug 31108] New: -
comons-net ftp does not work on zos (ebcdic platform)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31108>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31108
comons-net ftp does not work on zos (ebcdic platform)
Summary: comons-net ftp does not work on zos (ebcdic platform)
Product: Commons
Version: 1.0 Alpha
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Net
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: slong@seebeyond.com
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
slong@seebeyond.com
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org