Set TZ environment variable when not set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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++)
     {


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux