Skip to content
Tcl Source Code History Of Ticket 1497990fffffffff
Login

History Of Ticket 1497990fffffffff

Artifacts Associated With Ticket 1497990fffffffff

  1. Ticket change [bafee56b8d] (rid 129406) by ghanke on 2006-05-31 07:28:22:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      TCL-Version: 8.4.13
      OS: Windows 2000 SP4 / Windows XP SP2
      Locale Settings: DE
       - decimal symbol: ,
       - digit grouping symbol .
      
      After loading and using some packages the float
      arithmetic is dead...
      
       puts [expr sqrt(2)]
       # => 1,41421356237.0
      
      In consequence tkcon (and any text widget too) is
      annoying me with errors... 
      
      This occurs rarely. On Win 2000 SP4 with tcom creating
      wmi objects, and with tclodbc when using the ODBC
      driver "Pervasive ODBC Client Interface"
      
      ve SQL affected
      
      fresh compiled TCL 8.4.12 (msys-mingw8) has this bug too. 
      
      The problem disappears using "." for decimal symbol
      (Windows Control Center)
      
      After some investigation I figure out this is not a TCL
      bug but a bug in the sprintf function. This function
      returns sometimes a ',' as decimal point
      
      Perhaps take a hammer and blast them:
      Insert in generic/tclUtil.c (Tcl_PrintDouble) something
      like
            if (*p == ',') {
      *p = '.';
            }
      ...
      
      Greetings
      Goeran
      
      
    4. foundin initialized to: "obsolete: 8.4.13"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "ghanke"
    9. subsystem initialized to: "48. Number Handling"
    10. title initialized to:
      expr sqrt(2) returns 1,41421356237.0 after loading and using
      
    11. type initialized to: "Bug"
  2. Ticket change [256e0b1bb5] (rid 88170) by dkf on 2006-05-31 15:01:28:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      The problem is that some drivers insist on setting the
      locale. Thanks a bunch, Oracle. (Same problem occurs with
      some HP printer drivers IIRC.)
      
      I believe this is fixed in 8.5 (by no longer using sprintf()
      to format numbers) and I believe the workaround for 8.4 is
      to reset the locale after loading the database drivers. I
      can't quite remember if that can be done at the Tcl level on
      Windows, or if it needs a little C code. :-(
      
      Leaving open for area maintainer (well, someone more
      knowledgable than me) to comment.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. subsystem changed to: "10. Objects"
    5. username: "dkf"
  3. Ticket change [fdfc9606d9] (rid 108511) by ghanke on 2006-05-31 18:26:24:

    1. icomment:
      Logged In: YES 
      user_id=1511137
      
      strtod is also affected, so "expr 1.0" fails... This can be
      fixed by adding strtod.$(OBJEXT) to COMPAT_OBJS
      
      
      
    2. login: "ghanke"
    3. mimetype: "text/plain"
    4. username: "ghanke"
  4. Ticket change [433a97e225] (rid 116522) by dgp on 2006-05-31 23:34:49:

    1. closedate changed to: "2006-05-31T16:34:49"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Tcl 8.5 is immune to this.
      
      Workaround for 8.4 is not
      to use broken extensions.
      
      If someone else has more
      sympathy, they're welcome
      to pick this up.  I have no
      plans to work on it.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Pending"
    8. username: "dgp"
  5. Ticket change [84012cda31] (rid 117477) by sf-robot on 2006-06-15 09:23:53:

    1. icomment:
      Logged In: YES 
      user_id=1312539
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    2. login: "sf-robot"
    3. mimetype: "text/plain"
    4. username: "sf-robot"
  6. Ticket change [f3d8f18036] (rid 129793) by sf-robot on 2006-06-15 09:23:54:

    1. closedate changed to: "2006-06-15T02:23:54"
    2. closer changed to: "sf-robot"
    3. status changed to: "Closed"