Skip to content

Commit

Permalink
Merge pull request #17 from owncloud/cernbox-deduplicate-decode
Browse files Browse the repository at this point in the history
Fix error output, do not double decode file contents.
  • Loading branch information
moscicki committed May 5, 2015
2 parents 93a630d + f43c65b commit 6b72801
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/test_unicodejam.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def checkunicodejam(localdir):
if a!=f:
logger.error('FILELEN: %d',len(f))
logger.error('FILE : %s',f)
logger.error('CONTENT: %s',a.decode("UTF-8"))
logger.error('CONTLEN: %d',len(a.decode("UTF-8")))
logger.error('CONTENT: %s',a)
logger.error('CONTLEN: %d',len(a))

logger.error("FILE BYTES: %s %d",repr(f),len(repr(f)))
logger.error("CONTENT BYTES: %s %d",repr(a),len(repr(a)))
fh.close()
Expand Down

0 comments on commit 6b72801

Please sign in to comment.