I have a GUI application running on Tk. Up until today it worked nicely on Strawberry 5.32.

After upgrading to Strawberry 5.40 and applying the Tk patch Tk-804.036_001, the widget demo works as expected but my application does not.

The thing that no longer works is that floating point numbers are suddenly represented with comma instead of period, which seems to be a side effect of calling Tk::MainWindow->new().

As a consequence of this, all my floating point (and there's a lot) are now treated as integers, making e.g. 1/0.1 yield div by zero.

use Tk; $x = 1.2; $sq = $x * $x; print "Before Tk call $x, $sq\n"; $Window = MainWindow->new(); print "After Tk call $x, $sq\n";

yields(notice the change in comma separator)...

Before Tk call 1.2, 1.44 After Tk call 1,2, 1,44

When using the debugger and entering a simple "x 1.2", a single 1 is returned. x 1/0.1 yields division by zero

Any suggestions on what ty try next grately appreciated. I would hate to have to go back to 5.32.


In reply to Strawberry 5.40 Tk affects floating point comma separator by olgo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.