http://bugs.winehq.org/show_bug.cgi?id=17122
Summary: GetEnvironmentVariable not returning same as MSVCRT_environ Product: Wine Version: unspecified Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: lkcl@lkcl.net
a simple test of GetEnvironmentVariableA("COMSPEC") returns 0 but getenv("COMSPEC") succeeds. more on this one later, stub bugreport for now.
http://bugs.winehq.org/show_bug.cgi?id=17122
--- Comment #1 from Austin English austinenglish@gmail.com 2009-01-24 21:17:12 --- Testcase? Does this affect any app?
http://bugs.winehq.org/show_bug.cgi?id=17122
Luke Kenneth Casson Leighton lkcl@lkcl.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #2 from Luke Kenneth Casson Leighton lkcl@lkcl.net 2009-01-25 05:34:49 --- false alarm - it's a bug in the python tests. note the "os.environ.clear()" :)
class EnvironTests(mapping_tests.BasicTestMappingProtocol): """check that os.environ object conform to mapping protocol""" type2test = None def _reference(self): return {"KEY1":"VALUE1", "KEY2":"VALUE2", "KEY3":"VALUE3"} def _empty_mapping(self): os.environ.clear() return os.environ def setUp(self): self.__save = dict(os.environ) os.environ.clear() def tearDown(self): os.environ.clear() os.environ.update(self.__save)
# Bug 1110478 def test_update2(self): if os.path.exists("/bin/sh"): os.environ.update(HELLO="World") value = os.popen("/bin/sh -c 'echo $HELLO'").read().strip() self.assertEquals(value, "World")
http://bugs.winehq.org/show_bug.cgi?id=17122
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Jeff Zaroyko jeffz@jeffz.name 2009-01-25 06:44:16 --- closing
http://bugs.winehq.org/show_bug.cgi?id=17122
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|ntdll |-unknown