# HG changeset patch # User cmlenz # Date 1200314865 0 # Node ID 089154904d763e6e604e4be3f0fd36f5563678ee # Parent 992fb11739be285d642136b489cc3229fbf57022 Fix for unicode problem when the previous message id is included as a comment in PO serialization. Closes #78. diff --git a/babel/messages/pofile.py b/babel/messages/pofile.py --- a/babel/messages/pofile.py +++ b/babel/messages/pofile.py @@ -422,10 +422,10 @@ _write('#%s\n' % ', '.join([''] + list(message.flags))) if message.previous_id and include_previous: - _write_comment(u'msgid %s' % _normalize(message.previous_id[0]), + _write_comment('msgid %s' % _normalize(message.previous_id[0]), prefix='|') if len(message.previous_id) > 1: - _write_comment(u'msgid_plural %s' % _normalize( + _write_comment('msgid_plural %s' % _normalize( message.previous_id[1] ), prefix='|')