edsu/pymarc — Issue #19: Problem reading alternative graphic character at end of field
Author: EdwardBetts
Created: 2011-11-07 21:19:20+00:00
State: open

I've hit a problem that PyMARC doesn't handle the alternative graphic character set properly if they it appears at the end of a field. The example code below gives "IndexError: string index out of range"

from pymarc import marc8_to_unicode

assert marc8_to_unicode('CO\x1bb2\x1bs') == u'CO\u2082'