Issue1162

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

Created on 2008-10-29.04:34:48 by jeeyoungk, last changed 2009-04-08.01:27:21 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
msg4478 (view) Author: Philip Jenvey (pjenvey) Date: 2009-04-08.01:27:21
fixed in r6189, thanks
History
Date User Action Args
2009-04-08 01:27:21pjenveysetstatus: open -> closed
resolution: fixed
messages: + msg4478
2009-04-07 19:37:09pjenveysetpriority: normal -> high
2009-03-14 14:22:27fwierzbickisetpriority: normal
2009-03-14 14:06:37fwierzbickisetversions: + 2.2.2, - 2.2.1rc1
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