Commit a7f11948 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix a bug with time zones on MS-Windows.

 src/w32.c (unsetenv): Set up the string passed to _putenv
 correctly.  See
 http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00863.html
 for the bug this caused.
parent 1a82330c
2012-12-31 Eli Zaretskii <eliz@gnu.org>
* w32.c (unsetenv): Set up the string passed to _putenv
correctly. See
http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00863.html
for the bug this caused.
2012-12-30 Paul Eggert <eggert@cs.ucla.edu>
 
* coding.c (Qmac): Now static.
......
......@@ -1784,6 +1784,7 @@ unsetenv (const char *name)
/* It is safe to use 'alloca' with 32K size, since the stack is at
least 2MB, and we set it to 8MB in the link command line. */
var = alloca (name_len + 2);
strncpy (var, name, name_len);
var[name_len++] = '=';
var[name_len] = '\0';
return _putenv (var);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment