Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 51fbf022a43a38911ca0abb545599ea3b4a4bd9a
Ticket: 219004ffffffffffffffffffffffffffffffffff
tests/stringObj.test fails on multibyte locale
User & Date: nobody on 2000-10-26 01:09:12
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3842 Bug
    Version: 8.2.2
    SubmitDate: '1999-12-10'
    LastModified: '2000-06-27'
    Severity: LOW
    Status: Released
    Submitter: techsupp
    ChangedBy: ericm
    OS: Solaris
    OSVersion: SunOS 5.7 (japanese edition)
    Machine: Sun Ultra-60
    FixedDate: '2000-06-27'
    FixedInVersion: 8.4a2
    ClosedDate: '2000-10-25'
    
    
    Name:
    Taketo Kabe
    
    Comments:
    stringObj.test uses raw,unescaped 8bit characters in doublequotes.
    This may be properly parsed on iso-8859-1 or similar 8bit-per-char
    locale, but (correctly!) fails if the system locale was multibyte, such as EUC-jp, EUC-kr etc.
    Temporary solution would be running the tests by explicitly specifying a 8bit-char locale, i.e
    
    env LANG=en_US LD_LIBRARY_PATH=. TCL_LIBRARY=../library ./tcltest ../tests/stringObj.test
    
    This phenomenon seems to be persistent since Tcl has gone Unicode (around 8.1?).
    
    Rewriting stringObj.test to not include raw 8bit chars is suggested,
    using "\uxxxx" construct or binary command, depending on what to test.
    
    ReproducibleScript:
    on unix/ directory after build,
    env LANG=ja make test
    
    ObservedBehavior:
    stringObj-10.4, stringObj-13.5, stringObj-13.6 fails
    
    DesiredBehavior:
    none (or all!)  tests should fail.
    
    
    
    Thanks for the suggestion; I modified the tests in the manner you suggested.
    The fix will go out with Tcl 8.4a2.
    
       Eric Melski                            The Other Tcl Guy
       ericm at ajubasolutions.com            Ajuba Solutions
     
    -- 06/27/2000 ericm
    
  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: "tests/stringObj.test fails on multibyte locale"
  11. type changed to: "Bug"