[r22705]Bug 6928: Windows: If LANG not equal en_GB Graphic Reports

in some cases produce empty PDF sheets or force graphviz to crash

Problem was due to calling localized float() when parsing a C-locale xml file

svn: r22706
This commit is contained in:
John Ralls 2013-07-21 19:28:20 +00:00
parent 7301dccc55
commit 127567278e

View File

@ -73,8 +73,8 @@ class PageSizeParser(handler.ContentHandler):
def startElement(self, tag, attrs):
if tag == "page":
name = attrs['name']
height = glocale.float(attrs['height'])
width = glocale.float(attrs['width'])
height = float(attrs['height'])
width = float(attrs['width'])
self.paper_list.append(PaperSize(name, height, width))
#-------------------------------------------------------------------------