[reportlab-users] Error in pdfmetrics.py trying to register the same encoding twice

Matt Folwell mjf at pearson.co.uk
Thu Jul 10 12:19:23 EDT 2008

There's code in pdfmetrics.py to cope if you try to register two
identical encodings under the same name, but it doesn't work because
Encoding.isEqual() doesn't take account of comparing an unfrozen
encoding with a frozen one. (The vector is converted from a list to a

Also the wrong error is raised when the encodings are different, because
the Encoding's Name attribute shouldn't be capitalised.

The attached patch against subversion head fixes both of these.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: reregister-encoding.patch
Url: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20080710/383bd62e/attachment.ksh>

More information about the reportlab-users mailing list