1
1
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c
2
- index abac117..55ee452 100644
2
+ index abac117..e4b3e8c 100644
3
3
--- a/capplets/about-me/mate-about-me-password.c
4
4
+++ b/capplets/about-me/mate-about-me-password.c
5
- @@ -27,6 +27,14 @@
5
+ @@ -27,14 +27,33 @@
6
6
# include <config.h>
7
7
#endif
8
8
@@ -16,8 +16,10 @@ index abac117..55ee452 100644
16
16
+
17
17
/* Are all of these needed? */
18
18
#include <gdk/gdkkeysyms.h>
19
+ + #include <locale.h>
19
20
#include <pwd.h>
20
- @@ -35,6 +43,16 @@
21
+ #include <stdlib.h>
22
+ #include <unistd.h>
21
23
#include <errno.h>
22
24
#include <string.h>
23
25
#include <sys/wait.h>
@@ -34,7 +36,7 @@ index abac117..55ee452 100644
34
36
35
37
#if __sun
36
38
#include <sys/types.h>
37
- @@ -85,6 +103 ,9 @@ typedef struct {
39
+ @@ -85,6 +104 ,9 @@ typedef struct {
38
40
/* Buffer size for backend output */
39
41
#define BUFSIZE 64
40
42
@@ -44,7 +46,7 @@ index abac117..55ee452 100644
44
46
/*
45
47
* Error handling {{
46
48
*/
47
- @@ -170,85 +191,178 @@ static gboolean
49
+ @@ -170,85 +192,181 @@ static gboolean
48
50
spawn_passwd (PasswordDialog *pdialog, GError **error)
49
51
{
50
52
gchar *argv[2];
@@ -197,6 +199,9 @@ index abac117..55ee452 100644
197
199
+ dup2(pty_s, 0);
198
200
+ dup2(pty_s, 1);
199
201
+ dup2(pty_s, 2);
202
+ +
203
+ + /* We expect plain English from passwd */
204
+ + setlocale(LC_MESSAGES, "C");
200
205
+
201
206
+ execvp(argv[0], argv);
202
207
+
@@ -284,7 +289,7 @@ index abac117..55ee452 100644
284
289
}
285
290
286
291
/* Stop passwd backend */
287
- @@ -822,7 +936 ,7 @@ passdlg_spawn_passwd (PasswordDialog *pdialog)
292
+ @@ -822,7 +940 ,7 @@ passdlg_spawn_passwd (PasswordDialog *pdialog)
288
293
289
294
/* translators: Unable to launch <program>: <error message> */
290
295
details = g_strdup_printf (_("Unable to launch %s: %s"),
0 commit comments