Message52681
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() |
|
Date |
User |
Action |
Args |
2007-08-23 15:58:34 | admin | link | issue1726668 messages |
2007-08-23 15:58:34 | admin | create | |
|