Ticket #46840: io_progressbar_fix.patch

File io_progressbar_fix.patch, 802 bytes (added by RJVB (René Bertin), 9 years ago)
Line 
1--- src/io.c.last       So. Jan 24 19:18:45 2010
2+++ src/io.c    Fr. Jul 16 10:59:32 2010
3@@ -3202,6 +3202,8 @@
4                        close(fd2[1]);
5                }
6
7+               g_setenv("LC_ALL", "C", TRUE);
8+
9                /* startup child */
10                if (execl("/bin/sh", "sh", "-c", cmd ,(void *)NULL) < 0) {
11                        g_error("execl error\n");
12@@ -3402,6 +3404,8 @@
13                        close(fd3[1]);
14                }
15
16+               g_setenv("LC_ALL", "C", TRUE);
17+
18                /* startup child */
19                if (execv(callpath,arglist) < 0) {
20                        g_error("execv error\n");
21@@ -3506,6 +3510,8 @@
22                        close(pipefd[1]);
23                }
24
25+               g_setenv("LC_ALL", "C", TRUE);
26+
27                /* startup first child */
28                if (execv(callpath,arglist) < 0) {
29                        g_error("execv error\n");
30@@ -3568,6 +3574,8 @@
31                        close(fd3[1]);
32                }
33
34+               g_setenv("LC_ALL", "C", TRUE);
35+
36                /* startup second child */
37                if (execv(callpath2,arglist2) < 0) {
38                        g_error("execv error\n");
39