Bugs item #1726668, was opened at 2007-05-27 21:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1726668&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Benjamin Leppard (bleppard)
Assigned to: Nobody/Anonymous (nobody)
Summary: platform.system() returns incorrect value in Vista

Initial Comment:


On Microsoft Vista platform.system() returns 'Microsoft' and platform.release() 
returns 'Windows'

Under Microsoft Windows XP SP2 platform.system() returns 'Windows' and 
platform.release() returns 'XP'.

This is problem was caused by a change in the output of the "ver" command. In 
Windows XP SP2 "ver" outputted 'Microsoft Windows XP [Version 5.1.2600]'  In 
Microsoft Vista "ver" outputted 'Microsoft Windows [Version 6.0.6000]'. The 
lack of the 3rd word before version causes _syscmd_ver(...) in platform.py to 
return 'Microsoft' for system instead of 'Microsoft Windows'. This causes 
uname() to return the incorrect values. Both system() and release() call 
uname().

This problem occurs in the trunk.

I have attached a patch against the trunk svn that fixes the symptom of the 
problem in uname()

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1726668&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to