Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 12edb39c281b0014cf5f11edada948315a1fee8c
Ticket: 218986ffffffffffffffffffffffffffffffffff
test suite failure in unixInit due to locale definition prob
User & Date: nobody on 2000-10-26 01:08:58
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3549 Bug
    Version: 8.2.2
    SubmitDate: '1999-11-11'
    LastModified: '2000-02-09'
    Severity: LOW
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Solaris
    FixedDate: '2000-02-09'
    FixedInVersion: 8.3
    ClosedDate: '2000-10-25'
    
    
    Name:
    
    Don Porter
    
    
    
    Comments:
    
    If the environment variables LC_ALL or LC_CTYPE are set, they
    
    take precedence over LANG.  This causes the test to fail since
    
    the child shell never sees that the desired locale is "japanese".
    
    
    
    ObservedBehavior:
    
    $ make test
    
    ...
    
    ==== unixInit-3.2 TclpSetInitialEncodings FAILED
    
    ==== Contents of test case:
    
    ---- Result was:
    
    1
    
    ---- Result should have been:
    
    0
    
    ==== unixInit-3.2 FAILED
    
    
    
    DesiredBehavior:
    
    all tests pass
    
    
    
    Patch:
    
    *** unixInit.test       Tue Nov  9 13:05:00 1999
    
    --- unixInit.test.new   Tue Nov  9 13:03:47 1999
    
    ***************
    
    *** 162,175 ****
    
          set enc
    
      } {iso8859-1}
    
      test unixInit-3.2 {TclpSetInitialEncodings} {unixOnly installedTcl} {
    
    !     set env(LANG) japanese
    
      
    
          set f [open "|[list $::tcltest::tcltest]" w+]
    
          fconfigure $f -buffering none
    
          puts $f {puts [encoding system]; exit}
    
          set enc [gets $f]
    
          close $f
    
    !     unset env(LANG)
    
      
    
          switch $tcl_platform(os) {
    
            HP-UX {set expectedEncoding shiftjis}
    
    --- 162,175 ----
    
          set enc
    
      } {iso8859-1}
    
      test unixInit-3.2 {TclpSetInitialEncodings} {unixOnly installedTcl} {
    
    !     set env(LC_ALL) japanese
    
      
    
          set f [open "|[list $::tcltest::tcltest]" w+]
    
          fconfigure $f -buffering none
    
          puts $f {puts [encoding system]; exit}
    
          set enc [gets $f]
    
          close $f
    
    !     unset env(LC_ALL)
    
      
    
          switch $tcl_platform(os) {
    
            HP-UX {set expectedEncoding shiftjis}
    
    
    
    PatchFiles:
    
    tests/unixInit.test
    
    
    
    
    
    Fixed by setting LC_ALL in addition to LANG (and resetting it
    to the original). 
    -- 02/09/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.2.2"
  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: "85. tclconfig"
  10. title changed to:
    test suite failure in unixInit due to locale definition prob
    
  11. type changed to: "Bug"