Issue1162

classification
Title: Jython - javashell.py - _getOsType() function returns Posix for Windows Server 2008.
Type: behaviour Severity: normal
Components: Core Versions: 2.2.1rc1
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: pjenvey Nosy List: jeeyoungk, pjenvey
Priority: Keywords:

Created on 2008-10-29.04:34:48 by jeeyoungk, last changed 2008-11-23.02:33:16 by pjenvey.

Messages
msg3720 (view) Author: Jeeyoung Kim (jeeyoungk) Date: 2008-10-29.04:38:33
I tried to run jython under the Windows 2008, and I got the following
error when i called javaos.getenv() method
Failed to get environment, environ will be empty: (0, 'Failed to execute
command ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run
program "sh": CreateProcess error=2, The system cannot find the file
specified')

I realized that this was caused by the fact that _getOsType() function
is returning posix for Windows 2008.

Can you please add "Windows Server 2008" under the _osTypeMap variable
in _getOsType() function? Thanks.
msg3722 (view) Author: Philip Jenvey (pjenvey) Date: 2008-10-29.19:39:36
we should just make our _osmap an ordered tuple of key value pairs, and 
just match .startswith('Windows') after 'Windows CE' (which we probably 
don't need there anyway).

Then we don't have to special case the various Windows strings
History
Date User Action Args
2008-11-23 02:33:16pjenveysetassignee: pjenvey
2008-10-29 19:39:37pjenveysetnosy: + pjenvey
messages: + msg3722
2008-10-29 04:38:33jeeyoungksetmessages: + msg3720
2008-10-29 04:34:48jeeyoungkcreate