Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ae0b0df3ff31c53f247239ffce058163cc259f98
Ticket: 2913616fffffffffffffffffffffffffffffffff
msgcat does not work with Safe Base
User & Date: das on 2009-12-15 06:41:54
Changes

  1. assignee changed to: "dgp"
  2. icomment:
    thanks for pointing this out.
    it's not completely clear to me what is gained by not having tcl_platform(os) present in a safe interp, when tcl_platform(platform) is...
    but in case that is done for a good reason, the check for tcl_platform(os) in msgcat.tcl is not actually needed,  [info exists ::tcl::mac::locale] is only going to be true on that platform anyway, so just checking this suffices, i.e. transforming
    
        if {$::tcl_platform(os) eq "Darwin" && $::tcl_platform(platform) eq "unix"
        && [info exists ::tcl::mac::locale] && $::tcl::mac::locale ne ""} {
    
    into
    
        if {[info exists ::tcl::mac::locale] && $::tcl::mac::locale ne ""} {
    
    will behave in an equivalent fashion and will succeed in a safe interp.
    
    
  3. login: "das"
  4. mimetype: "text/plain"
  5. username: "das"