* lib/mudpy/misc.py: Explicitly recast text to unicode type when passing
to unicodedata.normalize on Python 2.x.
escape = False
# normalize any potentially composited unicode before we count it
- text = unicodedata.normalize("NFKC", text)
+ # TODO: remove this check after the switch to py3k
+ try:
+ text = unicodedata.normalize("NFKC", text)
+ except TypeError:
+ text = unicodedata.normalize("NFKC", unicode(text))
# iterate over each character from the begining of the text
for each_character in text: