[Jython-checkins] jython: Fix binascii.test_hqx by appending a 0 byte rather than the integer 0 after

jim.baker jython-checkins at python.org
Sat May 10 17:38:03 CEST 2014


http://hg.python.org/jython/rev/240d60136e84
changeset:   7237:240d60136e84
user:        Indra Talip <indra.talip at gmail.com>
date:        Sat May 10 15:52:56 2014 +1000
summary:
  Fix binascii.test_hqx by appending a 0 byte rather than the integer 0 after encountering a RUN_CHAR.

files:
  src/org/python/modules/binascii.java |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/org/python/modules/binascii.java b/src/org/python/modules/binascii.java
--- a/src/org/python/modules/binascii.java
+++ b/src/org/python/modules/binascii.java
@@ -621,7 +621,7 @@
                 if (ch == RUNCHAR) {
                     // RUNCHAR. Escape it.
                     out_data.append(RUNCHAR);
-                    out_data.append(0);
+                    out_data.append((char) 0);
                 } else {
                     // Check how many following are the same
                     int inend;

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list