Set TZ environment variable when not set

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Apr 16 14:05:28 CDT 2003


Changelog:
	memory/environ.c: build_environment
	Set the TZ value to GMT0, if TZ is not set

Synplify.exe from the Quicklogic FPGA suite refused to work with the demo
license. Setting TZ to any value made it work. GMT0 should be a good
approach.

Awaiting the "flame war" about noise level for that silent change :-)

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/memory/environ.c
===================================================================
RCS file: /home/wine/wine/memory/environ.c,v
retrieving revision 1.39
diff -u -r1.39 environ.c
--- wine/memory/environ.c	23 Jan 2003 23:07:39 -0000	1.39
+++ wine/memory/environ.c	16 Apr 2003 18:59:32 -0000
@@ -149,8 +149,10 @@
     LPSTR p, *e;
     int size;
 
-    /* Compute the total size of the Unix environment */
+    /* Some program like qllink.dll/synplify.exe need _some_ TZ value */
+    setenv("TZ","GMT0",0);
 
+    /* Compute the total size of the Unix environment */
     size = sizeof(BYTE) + sizeof(WORD) + sizeof(ENV_program_name);
     for (e = environ; *e; e++)
     {



More information about the wine-patches mailing list