Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 60bd7205916a925c7e738f75c6a0e29ecd67fa7d
Ticket: 218071ffffffffffffffffffffffffffffffffff
decimal seperator is not supported properly
User & Date: nobody on 2000-10-26 00:52:51
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1596 Bug
    Version: 8.0.5
    SubmitDate: '1999-03-22'
    LastModified: '1999-04-16'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: stanton
    OS: Windows NT
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '1999-04-16'
    
    
    Name:
    Peter Nachbar
    
    CVS:
    3/22/1999 15:00 MEZ
    
    ReproducibleScript:
        within "C": setlocale( LC_ALL, "German"); // invoke within external dll,
        which is afterwards loaded in wish80.exe
        within wish80.exe:
        % load d:/src/dll/relwhtig/tclsegm80.dll
        % expr 2.0
        syntax error in expression "2.0"
        % expr 2,0
        syntax error in expression "2,0"
        % expr sin(1)
        0,841470984808.0
        
        
    
    
    
    ObservedBehavior:
        A floating point number cannot be entered anymore.
        A floating point number is formatted improperly.
        
    
    
    
    DesiredBehavior:
        Disreagarding the local setting a floating point should be entered with
        a ".".
        At least this has to be true for file which are source byte-compiled or
        not.
        
    
    
    
    Patch:
    The tcl-extension function PagerSetLocale contains the following code:
    setlocale( LC_NUMERIC, argv[1]);
    % PagerGetLocale
    German_Germany.1252
    % PagerSetLocale English
    English_United States.1252
    % expr 2.0
    2.0
    % expr sin(1)
    0.841470984808
    
    
    
    
    PatchFiles:
        ??
        
    
    
    
    
    The locale must be "C" for Tcl to work properly.
    04/16/1999 14:41 - stanton -
    
  4. foundin changed to: "final: 8.0.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "decimal seperator is not supported properly"
  11. type changed to: "Bug"