edx/notifier — pull request #10 by jimabramson (2013-12-20 20:43:55+00:00)
Title: handle non-BMP unicode chars in _trunc()

@gwprice @nedbat

here's a mod to our string truncation function that should correctly count / iterate the non-BMP characters on narrow builds (e.g., my laptop, where the tests now pass). it gets the job done and isn't overly complicated, though i'm sure it could be improved.