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=38246>. 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=38246 Summary: BinaryCodec.toAsciiString outputs answer in reverse byte order. Product: Commons Version: 1.3 Final Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P3 Component: Codec AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] In Codec 1.3, BinaryCodec.toAsciiString outputs answer in reverse byte order. For example: byte [0,1,2] becomes [00000010,00000001,00000000]. BeanShell output: BinaryCodec.toAsciiString reverses the input byte array. bsh % hex = "0077FF"; <0077FF> bsh % bytes = Hex.decodeHex(hex.toCharArray()); <[EMAIL PROTECTED]> bsh % bytes[0]; <0> bsh % bytes[1]; <119> bsh % bytes[2]; <-1> bsh % BinaryCodec.toAsciiString(bytes); <111111110111011100000000> -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]