http://bugs.winehq.org/show_bug.cgi?id=24536
Summary: environ is NULL under Wine but not on real Windows Product: Wine Version: 1.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: simon@josefsson.org
Running the program below prints NULL under Wine but non-NULL under real Windows.
Thanks, Simon
jas@mocca:~$ cat environ-wine.c #include <stdio.h> #include <stddef.h> #include <stdlib.h>
int main (void) { if (environ == NULL) puts("NULL"); else puts("non-NULL"); return 0; } jas@mocca:~$ i686-w64-mingw32-gcc -o environ-wine.exe environ-wine.c jas@mocca:~$ wine ./environ-wine.exe NULL jas@mocca:~$ wine --version wine-1.2 jas@mocca:~$
http://bugs.winehq.org/show_bug.cgi?id=24536
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
http://bugs.winehq.org/show_bug.cgi?id=24536
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2010-09-27 04:30:04 CDT --- What application is affected by this?
http://bugs.winehq.org/show_bug.cgi?id=24536
--- Comment #2 from Simon Josefsson simon@josefsson.org 2010-09-27 04:39:26 CDT --- I noticed the problem when running the self tests that comes with GNU SASL. Two of the self tests actually comes from gnulib, and it tests whether environ/putenv is working properly.
See more discussion at http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/23262
http://bugs.winehq.org/show_bug.cgi?id=24536
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Andrew Nguyen arethusa26@gmail.com 2010-09-28 03:59:33 CDT --- I submitted a patch:
http://source.winehq.org/patches/data/66546
http://bugs.winehq.org/show_bug.cgi?id=24536
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #4 from Andrew Nguyen arethusa26@gmail.com 2010-09-30 11:37:23 CDT --- A modified version of the patch was committed as 285e6d249fded2a306a251550652c650f7bf81ba, so this should be fixed.
http://bugs.winehq.org/show_bug.cgi?id=24536
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2010-10-01 13:56:44 CDT --- Closing bugs fixed in 1.3.4.
https://bugs.winehq.org/show_bug.cgi?id=24536
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |285e6d249fded2a306a25155065 | |2c650f7bf81ba CC| |focht@gmx.net Component|-unknown |msvcrt