Commit c4a14f3b authored by Manish Singh's avatar Manish Singh
Browse files

set all the locale variables we can, to make sure we get predictable

* plug-ins/common/url.c: set all the locale variables we can, to
make sure we get predictable output from wget

-Yosh
parent bc1638c7
Mon Nov 13 01:28:24 PST 2000 Manish Singh <yosh@gimp.org>
* plug-ins/common/url.c: set all the locale variables we can, to
make sure we get predictable output from wget
2000-11-11 Simon Budig <simon@gimp.org>
 
* app/interface.c: fixed #10554 by requesting a window
......
......@@ -181,7 +181,14 @@ load_image (gchar *filename,
close (2);
dup (p[1]);
close (p[1]);
putenv ("LC_ALL=C"); /* produce deterministic output */
#ifdef HAVE_PUTENV
/* produce deterministic output */
putenv ("LANGUAGE=C");
putenv ("LC_ALL=C");
putenv ("LANG=C");
#endif
execlp ("wget", "wget", "-T", TIMEOUT, filename, "-O", tmpname, NULL);
g_message ("url: exec() failed: wget: %s", g_strerror (errno));
g_free (tmpname);
......
......@@ -181,7 +181,14 @@ load_image (gchar *filename,
close (2);
dup (p[1]);
close (p[1]);
putenv ("LC_ALL=C"); /* produce deterministic output */
#ifdef HAVE_PUTENV
/* produce deterministic output */
putenv ("LANGUAGE=C");
putenv ("LC_ALL=C");
putenv ("LANG=C");
#endif
execlp ("wget", "wget", "-T", TIMEOUT, filename, "-O", tmpname, NULL);
g_message ("url: exec() failed: wget: %s", g_strerror (errno));
g_free (tmpname);
......
......@@ -181,7 +181,14 @@ load_image (gchar *filename,
close (2);
dup (p[1]);
close (p[1]);
putenv ("LC_ALL=C"); /* produce deterministic output */
#ifdef HAVE_PUTENV
/* produce deterministic output */
putenv ("LANGUAGE=C");
putenv ("LC_ALL=C");
putenv ("LANG=C");
#endif
execlp ("wget", "wget", "-T", TIMEOUT, filename, "-O", tmpname, NULL);
g_message ("url: exec() failed: wget: %s", g_strerror (errno));
g_free (tmpname);
......
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