From: John H. <jdh...@ac...> - 2005-03-05 02:41:00
|
>>>>> "matthew" == matthew arnison <ma...@ca...> writes: matthew> To make a long story short, _winreg is failing to deal matthew> with some Japanese font registry keys, and throwing the matthew> WindowsError (ErrNo 234). A good workaround is to add a matthew> "try / except WindowsError: pass" around the matthew> _winreg.EnumValue() stanza inside the for loop. From my matthew> testing, for a system with 93 fonts, this should skip the matthew> 3 troublesome fonts and catalog the rest. matthew> My apologies that I cannot provide a patch or a simple matthew> test case at this time, but I hope this report is useful. Hi Matthew -- thanks for your efforts on this. I have to honestly say that I don't have a lot of time to work on this bug -- I don't know enough about Japanese fonts or the windows registry. None of the other matplotlib developers seem to have taken up the banner either. If you can provide a patch that fixes or works around the bug, I'd be very happy to include it. I could work figure out the appropriate patch by reading your email closely, but I don't have a good environment to test it, so it would be more efficient if you simply submitted a patch that has your try/except workaround until we can come up with something better. Thanks! JDH |