Skip to content

Commit

Permalink
Merge pull request #760 from xsuchy/pull-req-cli1
Browse files Browse the repository at this point in the history
convert string to unicode
  • Loading branch information
xsuchy committed Sep 27, 2012
2 parents 32bf70e + 2d972a1 commit c133b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/katello/client/utils/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,4 +501,4 @@ def get_term_width():

def unicode_len(text):
""" return byte lenght of unicode character """
return sum(1+(unicodedata.east_asian_width(c) in "WF") for c in text)
return sum(1+(unicodedata.east_asian_width(c) in "WF") for c in u_str(text))

0 comments on commit c133b8c

Please sign in to comment.