Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9a2ebb8141b810d86e3afef822a0d328a610bc23
Ticket: 3102483fffffffffffffffffffffffffffffffff
Incorrect tcl_platform(machine) value on 64-bit Windows7
User & Date: obermeier on 2010-11-03 21:37:23
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Active Tcl 8.5.8 returns the following information on my Windows7 64-bit system:
    
    % info pa
    8.5.8
    % parray tcl_platform
    tcl_platform(byteOrder)   = littleEndian
    tcl_platform(machine)     = intel
    tcl_platform(os)          = Windows NT
    tcl_platform(osVersion)   = 6.1
    tcl_platform(platform)    = windows
    tcl_platform(pointerSize) = 4
    tcl_platform(threaded)    = 1
    tcl_platform(user)        = paul
    tcl_platform(wordSize)    = 4
    
    The info in doubt is tcl_platform(machine).
    It seems, that the function GetSystemInfo as used in TclpSetVariables
    (file tclWinInit.c) does not work as expected.
    
    If using function GetNativeSystemInfo instead (as described in 
    http://msdn.microsoft.com/en-us/library/ms724429%28v=VS.85%29.aspx)
    I get the following output, which seems more reasonable:
    
    % info pa
    8.5.8
    % parray tcl_platform
    tcl_platform(byteOrder)   = littleEndian
    tcl_platform(machine)     = amd64
    tcl_platform(os)          = Windows NT
    tcl_platform(osVersion)   = 6.1
    tcl_platform(platform)    = windows
    tcl_platform(pointerSize) = 4
    tcl_platform(user)        = paul
    tcl_platform(wordSize)    = 4
    
    Attached is the patched TclpSetVariables function.
    
    The problem described applies to all 8.5 and 8.6 versions.
    
  4. foundin changed to: "obsolete: 8.5.9"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "obermeier"
  10. subsystem changed to: "38. Init - Library - Autoload"
  11. title changed to:
    Incorrect tcl_platform(machine) value on 64-bit Windows7
    
  12. type changed to: "Bug"