<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:10pt;font-family:Sans Serif">
<p>Hi all, </p>
<p></p>
<p>got a tiny fix for i18n number parsing. Did not work</p>
<p>for e.g. the german locale so fixed the bug. Maybe </p>
<p>someone wants to check it in if there is no mistake </p>
<p>in my bug fix (if I'm not entirely mistaken and there</p>
<p>is actually a bug in the code).</p>
<p></p>
<p>--- format.py </p>
<p>+++ format.py</p>
<p>@@ -277,9 +277,10 @@</p>
<p>         type = int</p>
<p>         if self.symbols['decimal'] in num_str:</p>
<p>             type = float</p>
<p>+            num_str = num_str.replace(self.symbols['decimal'], '.') </p>
<p>         if self.symbols['exponential'] in num_str:</p>
<p>             type = float</p>
<p>-            num_str.replace(self.symbols['exponential'], 'E') </p>
<p>+            num_str = num_str.replace(self.symbols['exponential'], 'E') </p>
<p>         return sign*type(num_str)</p>
<p> </p>
<p>     def _format_integer(self, integer, pattern):</p>
<p> </p>
<p>Description:</p>
<p></p>
<p>1.        string replacement does not perform in-place modification of</p>
<p>        the instance but returns a copy of the string with the replacement</p>
<p>        applied.</p>
<p></p>
<p>2.         float constructor does not accept locale specific fraction delimiter</p>
<p>        so we need to replace it by the standard '.' to get the string parsed</p>
<p>        correctly. </p>
<p></p>
<p>Greetings </p>
<p></p>
<p>Sven Schomaker</p>
</body></html>