Hi all!<br><br>I'm using skencil version 0.6.17 (specifically sk2ps) as part of the building process of the <a href="http://lbproject.sourceforge.net">Linux Brochure Project</a><br>My linux locale (<span style="font-family: courier new,monospace;">
LANG</span>, <span style="font-family: courier new,monospace;">LANGUAGE</span> and <span style="font-family: courier new,monospace;">LC_*</span>) is set to <span style="font-family: courier new,monospace;">es_CL.UTF-8</span>
and sk2ps fails when parsing the (float) numbers from a .sk file because of the different decimal character. This was discussed in the old mailing list with the topic "<a href="http://sourceforge.net/mailarchive/message.php?msg_id=14370371">
sk2ps now fails</a>" started by Nicolas Ecarnot but no solution was given and I have not been able to find a similar topic in the new mailing list or the old/new bugs or patches tracker.<br><br>I am now using a work around the problem which may be useful to others:
<br><br><span style="font-family: courier new,monospace;">import locale</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">...</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#insert the folowing code before "locale afected" operations (i.e. scanf, printf, ...) to set it to the (safer) `C' locale
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">original_locale = locale.setlocale(locale.LC_ALL, None)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
locale.setlocale(locale.LC_ALL, 'C')</span><br style="font-family: courier new,monospace;" clear="all"><span style="font-family: courier new,monospace;">...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
#add the following code to reset the locale to the default one after the operations</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">locale.setlocale(locale.LC_ALL, original_locale)
</span><br><br>Just as a "curiosity" regarding the decimal character. According to two sources, the wikipedia (<a href="http://en.wikipedia.org/wiki/Decimal_separator">http://en.wikipedia.org/wiki/Decimal_separator
</a>) and the spanish manual for the babel LaTeX system by Javier Bezos (<a href="http://www.texytipografia.com/archive/spanish.pdf">http://www.texytipografia.com/archive/spanish.pdf</a>) the comma to mark the decimal units position has been made standard by the
<a href="http://en.wikipedia.org/wiki/International_Organization_for_Standardization" title="International Organization for Standardization">ISO</a> for international blueprints. <br><br>Best regards,<br>-- <br>Daniel Vicente Lühr Sierra
<br>Ingeniero Civil Eléctrico<br>Universidad de Chile<br>