Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f7f5a0389b636d59e3348dd14eed4cfae60dd1f5
Ticket: 217815ffffffffffffffffffffffffffffffffff
Missing locale support in Tcl
User & Date: nobody on 2000-10-26 00:44:06
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1391 Bug
    Version: 8.0.3
    SubmitDate: '1999-03-02'
    LastModified: '1999-08-07'
    Severity: SER
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 1352 1251
    OS: Other
    OSVersion: Linux (all versions) BSDI (all versions) Solaris (2.5). Really t
    Machine: NA
    FixedDate: '2000-10-25'
    ClosedDate: '1999-08-07'
    
    
    Extensions:
    not relevant
    
    CustomShell:
    not relevant
    
    ReproducibleScript:
    string toupper, string tolower. string wordstart and string wordend
    commands are affected
    
    
    
    ObservedBehavior:
    Subcommands of string command which use C function from ctype.h
    i.e. string toupper, string tolower, string worstart and
    lsort with -dictionary option always use default "C" locale,
    instead of current user's locale
    
    
    
    DesiredBehavior:
    Commands, mentioned above should use current locale settings
    
    
    
    Patch:
    Add
    call of setlocale(LC_ALL,"") at the beginning of Tcl_Main function
    Add #include <locale.h> in appropriate place in the beginning of tclMain.c
    
    
    
    PatchFiles:
    tclMain.c
    
    
    
    
    
    Workaround, shown above fixes problem with string toupper/tolower,
    but doesn't fix problem with lsort -dictionary
    
    
  4. foundin changed to: "obsolete: 8.0.3"
  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: "Missing locale support in Tcl"
  11. type changed to: "Bug"