summaryrefslogtreecommitdiffstats
path: root/web/attachments/330164-nagios-plugins-1.4.13-no-buggy-locales.diff
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/330164-nagios-plugins-1.4.13-no-buggy-locales.diff')
-rw-r--r--web/attachments/330164-nagios-plugins-1.4.13-no-buggy-locales.diff577
1 files changed, 577 insertions, 0 deletions
diff --git a/web/attachments/330164-nagios-plugins-1.4.13-no-buggy-locales.diff b/web/attachments/330164-nagios-plugins-1.4.13-no-buggy-locales.diff
new file mode 100644
index 0000000..280708f
--- /dev/null
+++ b/web/attachments/330164-nagios-plugins-1.4.13-no-buggy-locales.diff
@@ -0,0 +1,577 @@
1diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_by_ssh.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_by_ssh.c
2--- nagios-plugins-1.4.13/plugins/check_by_ssh.c 2008-05-27 23:31:13.000000000 +0200
3+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_by_ssh.c 2008-12-15 22:10:55.000000000 +0100
4@@ -72,10 +72,6 @@
5 remotecmd = "";
6 comm = strdup (SSH_COMMAND);
7
8- setlocale (LC_ALL, "");
9- bindtextdomain (PACKAGE, LOCALEDIR);
10- textdomain (PACKAGE);
11-
12 /* Parse extra opts if any */
13 argv=np_extra_opts (&argc, argv, progname);
14
15diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_cluster.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_cluster.c
16--- nagios-plugins-1.4.13/plugins/check_cluster.c 2008-05-07 12:02:42.000000000 +0200
17+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_cluster.c 2008-12-15 22:10:55.000000000 +0100
18@@ -70,10 +70,6 @@
19 int return_code=STATE_OK;
20 thresholds *thresholds = NULL;
21
22- setlocale (LC_ALL, "");
23- bindtextdomain (PACKAGE, LOCALEDIR);
24- textdomain (PACKAGE);
25-
26 /* Parse extra opts if any */
27 argv=np_extra_opts(&argc, argv, progname);
28
29diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_dig.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_dig.c
30--- nagios-plugins-1.4.13/plugins/check_dig.c 2008-06-09 21:47:36.000000000 +0200
31+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_dig.c 2008-12-15 22:10:55.000000000 +0100
32@@ -76,10 +76,6 @@
33 double elapsed_time;
34 int result = STATE_UNKNOWN;
35
36- setlocale (LC_ALL, "");
37- bindtextdomain (PACKAGE, LOCALEDIR);
38- textdomain (PACKAGE);
39-
40 /* Set signal handling and alarm */
41 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR)
42 usage_va(_("Cannot catch SIGALRM"));
43diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_disk.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_disk.c
44--- nagios-plugins-1.4.13/plugins/check_disk.c 2008-07-10 12:03:55.000000000 +0200
45+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_disk.c 2008-12-15 22:10:56.000000000 +0100
46@@ -186,10 +186,6 @@
47 perf = strdup ("");
48 stat_buf = malloc(sizeof *stat_buf);
49
50- setlocale (LC_ALL, "");
51- bindtextdomain (PACKAGE, LOCALEDIR);
52- textdomain (PACKAGE);
53-
54 mount_list = read_file_system_list (0);
55
56 /* Parse extra opts if any */
57diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_dns.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_dns.c
58--- nagios-plugins-1.4.13/plugins/check_dns.c 2008-05-13 11:14:45.000000000 +0200
59+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_dns.c 2008-12-15 22:10:56.000000000 +0100
60@@ -90,10 +90,6 @@
61 output chld_out, chld_err;
62 size_t i;
63
64- setlocale (LC_ALL, "");
65- bindtextdomain (PACKAGE, LOCALEDIR);
66- textdomain (PACKAGE);
67-
68 /* Set signal handling and alarm */
69 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) {
70 usage_va(_("Cannot catch SIGALRM"));
71diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_dummy.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_dummy.c
72--- nagios-plugins-1.4.13/plugins/check_dummy.c 2008-04-27 16:35:26.000000000 +0200
73+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_dummy.c 2008-12-15 22:10:56.000000000 +0100
74@@ -48,10 +48,6 @@
75 {
76 int result = STATE_UNKNOWN;
77
78- setlocale (LC_ALL, "");
79- bindtextdomain (PACKAGE, LOCALEDIR);
80- textdomain (PACKAGE);
81-
82 if (argc < 2)
83 usage4 (_("Could not parse arguments"));
84 else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) {
85diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_fping.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_fping.c
86--- nagios-plugins-1.4.13/plugins/check_fping.c 2008-08-16 06:47:22.000000000 +0200
87+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_fping.c 2008-12-15 22:10:56.000000000 +0100
88@@ -79,10 +79,6 @@
89 char *input_buffer = NULL;
90 input_buffer = malloc (MAX_INPUT_BUFFER);
91
92- setlocale (LC_ALL, "");
93- bindtextdomain (PACKAGE, LOCALEDIR);
94- textdomain (PACKAGE);
95-
96 /* Parse extra opts if any */
97 argv=np_extra_opts (&argc, argv, progname);
98
99diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_game.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_game.c
100--- nagios-plugins-1.4.13/plugins/check_game.c 2008-05-07 12:02:42.000000000 +0200
101+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_game.c 2008-12-15 22:10:57.000000000 +0100
102@@ -75,10 +75,6 @@
103 size_t i = 0;
104 output chld_out;
105
106- setlocale (LC_ALL, "");
107- bindtextdomain (PACKAGE, LOCALEDIR);
108- textdomain (PACKAGE);
109-
110 /* Parse extra opts if any */
111 argv=np_extra_opts (&argc, argv, progname);
112
113diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_hpjd.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_hpjd.c
114--- nagios-plugins-1.4.13/plugins/check_hpjd.c 2008-05-07 12:02:42.000000000 +0200
115+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_hpjd.c 2008-12-15 22:10:57.000000000 +0100
116@@ -96,10 +96,6 @@
117
118 errmsg = malloc(MAX_INPUT_BUFFER);
119
120- setlocale (LC_ALL, "");
121- bindtextdomain (PACKAGE, LOCALEDIR);
122- textdomain (PACKAGE);
123-
124 /* Parse extra opts if any */
125 argv=np_extra_opts (&argc, argv, progname);
126
127diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_http.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_http.c
128--- nagios-plugins-1.4.13/plugins/check_http.c 2008-09-02 13:26:31.000000000 +0200
129+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_http.c 2008-12-15 22:10:57.000000000 +0100
130@@ -137,10 +137,6 @@
131 {
132 int result = STATE_UNKNOWN;
133
134- setlocale (LC_ALL, "");
135- bindtextdomain (PACKAGE, LOCALEDIR);
136- textdomain (PACKAGE);
137-
138 /* Set default URL. Must be malloced for subsequent realloc if --onredirect=follow */
139 server_url = strdup(HTTP_URL);
140 server_url_length = strlen(server_url);
141diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_ide_smart.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ide_smart.c
142--- nagios-plugins-1.4.13/plugins/check_ide_smart.c 2008-05-07 12:02:42.000000000 +0200
143+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ide_smart.c 2008-12-15 22:10:57.000000000 +0100
144@@ -176,10 +176,6 @@
145 {"version", no_argument, 0, 'V'}, {0, 0, 0, 0}
146 };
147
148- setlocale (LC_ALL, "");
149- bindtextdomain (PACKAGE, LOCALEDIR);
150- textdomain (PACKAGE);
151-
152 while (1) {
153
154 o = getopt_long (argc, argv, "+d:iq10nhV", longopts, &longindex);
155diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_ldap.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ldap.c
156--- nagios-plugins-1.4.13/plugins/check_ldap.c 2008-05-07 12:02:42.000000000 +0200
157+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ldap.c 2008-12-15 22:10:57.000000000 +0100
158@@ -97,10 +97,6 @@
159 int tls;
160 int version=3;
161
162- setlocale (LC_ALL, "");
163- bindtextdomain (PACKAGE, LOCALEDIR);
164- textdomain (PACKAGE);
165-
166 if (strstr(argv[0],"check_ldaps")) {
167 asprintf (&progname, "check_ldaps");
168 }
169diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_load.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_load.c
170--- nagios-plugins-1.4.13/plugins/check_load.c 2008-05-07 12:02:42.000000000 +0200
171+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_load.c 2008-12-15 22:10:58.000000000 +0100
172@@ -114,11 +114,6 @@
173 # endif
174 #endif
175
176- setlocale (LC_ALL, "");
177- bindtextdomain (PACKAGE, LOCALEDIR);
178- textdomain (PACKAGE);
179- setlocale(LC_NUMERIC, "POSIX");
180-
181 /* Parse extra opts if any */
182 argv = np_extra_opts (&argc, argv, progname);
183
184diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_mrtg.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_mrtg.c
185--- nagios-plugins-1.4.13/plugins/check_mrtg.c 2008-05-07 12:02:42.000000000 +0200
186+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_mrtg.c 2008-12-15 22:10:58.000000000 +0100
187@@ -68,10 +68,6 @@
188 unsigned long maximum_value_rate = 0L;
189 unsigned long rate = 0L;
190
191- setlocale (LC_ALL, "");
192- bindtextdomain (PACKAGE, LOCALEDIR);
193- textdomain (PACKAGE);
194-
195 /* Parse extra opts if any */
196 argv=np_extra_opts (&argc, argv, progname);
197
198diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_mrtgtraf.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_mrtgtraf.c
199--- nagios-plugins-1.4.13/plugins/check_mrtgtraf.c 2008-05-07 12:02:42.000000000 +0200
200+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_mrtgtraf.c 2008-12-15 22:10:58.000000000 +0100
201@@ -76,10 +76,6 @@
202 char incoming_speed_rating[8];
203 char outgoing_speed_rating[8];
204
205- setlocale (LC_ALL, "");
206- bindtextdomain (PACKAGE, LOCALEDIR);
207- textdomain (PACKAGE);
208-
209 /* Parse extra opts if any */
210 argv=np_extra_opts (&argc, argv, progname);
211
212diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_mysql.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_mysql.c
213--- nagios-plugins-1.4.13/plugins/check_mysql.c 2008-08-16 06:47:32.000000000 +0200
214+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_mysql.c 2008-12-15 22:10:58.000000000 +0100
215@@ -78,10 +78,6 @@
216 char *error = NULL;
217 char slaveresult[SLAVERESULTSIZE];
218
219- setlocale (LC_ALL, "");
220- bindtextdomain (PACKAGE, LOCALEDIR);
221- textdomain (PACKAGE);
222-
223 /* Parse extra opts if any */
224 argv=np_extra_opts (&argc, argv, progname);
225
226diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_mysql_query.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_mysql_query.c
227--- nagios-plugins-1.4.13/plugins/check_mysql_query.c 2008-08-16 06:47:32.000000000 +0200
228+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_mysql_query.c 2008-12-15 22:10:59.000000000 +0100
229@@ -74,10 +74,6 @@
230 char *error = NULL;
231 int status;
232
233- setlocale (LC_ALL, "");
234- bindtextdomain (PACKAGE, LOCALEDIR);
235- textdomain (PACKAGE);
236-
237 /* Parse extra opts if any */
238 argv=np_extra_opts (&argc, argv, progname);
239
240diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_nagios.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_nagios.c
241--- nagios-plugins-1.4.13/plugins/check_nagios.c 2008-05-07 12:02:42.000000000 +0200
242+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_nagios.c 2008-12-15 22:10:59.000000000 +0100
243@@ -84,10 +84,6 @@
244 output chld_out, chld_err;
245 size_t i;
246
247- setlocale (LC_ALL, "");
248- bindtextdomain (PACKAGE, LOCALEDIR);
249- textdomain (PACKAGE);
250-
251 /* Parse extra opts if any */
252 argv=np_extra_opts (&argc, argv, progname);
253
254diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_nt.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_nt.c
255--- nagios-plugins-1.4.13/plugins/check_nt.c 2008-05-07 12:02:42.000000000 +0200
256+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_nt.c 2008-12-15 22:10:59.000000000 +0100
257@@ -118,10 +118,6 @@
258 int isPercent = FALSE;
259 int allRight = FALSE;
260
261- setlocale (LC_ALL, "");
262- bindtextdomain (PACKAGE, LOCALEDIR);
263- textdomain (PACKAGE);
264-
265 /* Parse extra opts if any */
266 argv=np_extra_opts (&argc, argv, progname);
267
268diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_ntp.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ntp.c
269--- nagios-plugins-1.4.13/plugins/check_ntp.c 2008-05-07 12:02:42.000000000 +0200
270+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ntp.c 2008-12-15 22:10:59.000000000 +0100
271@@ -757,10 +757,6 @@
272 double offset=0, jitter=0;
273 char *result_line, *perfdata_line;
274
275- setlocale (LC_ALL, "");
276- bindtextdomain (PACKAGE, LOCALEDIR);
277- textdomain (PACKAGE);
278-
279 result = offset_result = jitter_result = STATE_OK;
280
281 /* Parse extra opts if any */
282diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_ntp_peer.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ntp_peer.c
283--- nagios-plugins-1.4.13/plugins/check_ntp_peer.c 2008-09-02 14:28:04.000000000 +0200
284+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ntp_peer.c 2008-12-15 22:10:59.000000000 +0100
285@@ -589,10 +589,6 @@
286 double offset=0, jitter=0;
287 char *result_line, *perfdata_line;
288
289- setlocale (LC_ALL, "");
290- bindtextdomain (PACKAGE, LOCALEDIR);
291- textdomain (PACKAGE);
292-
293 /* Parse extra opts if any */
294 argv=np_extra_opts (&argc, argv, progname);
295
296diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_ntp_time.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ntp_time.c
297--- nagios-plugins-1.4.13/plugins/check_ntp_time.c 2008-09-01 16:04:22.000000000 +0200
298+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ntp_time.c 2008-12-15 22:10:59.000000000 +0100
299@@ -539,10 +539,6 @@
300 double offset=0;
301 char *result_line, *perfdata_line;
302
303- setlocale (LC_ALL, "");
304- bindtextdomain (PACKAGE, LOCALEDIR);
305- textdomain (PACKAGE);
306-
307 result = offset_result = STATE_OK;
308
309 /* Parse extra opts if any */
310diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_nwstat.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_nwstat.c
311--- nagios-plugins-1.4.13/plugins/check_nwstat.c 2008-05-07 12:02:42.000000000 +0200
312+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_nwstat.c 2008-12-15 22:10:59.000000000 +0100
313@@ -166,10 +166,6 @@
314 unsigned long sap_entries=0;
315 char uptime[MAX_INPUT_BUFFER];
316
317- setlocale (LC_ALL, "");
318- bindtextdomain (PACKAGE, LOCALEDIR);
319- textdomain (PACKAGE);
320-
321 /* Parse extra opts if any */
322 argv=np_extra_opts(&argc, argv, progname);
323
324diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_overcr.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_overcr.c
325--- nagios-plugins-1.4.13/plugins/check_overcr.c 2008-05-07 12:02:42.000000000 +0200
326+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_overcr.c 2008-12-15 22:10:59.000000000 +0100
327@@ -95,10 +95,6 @@
328 int uptime_hours = 0;
329 int uptime_minutes = 0;
330
331- setlocale (LC_ALL, "");
332- bindtextdomain (PACKAGE, LOCALEDIR);
333- textdomain (PACKAGE);
334-
335 /* Parse extra opts if any */
336 argv=np_extra_opts (&argc, argv, progname);
337
338diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_pgsql.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_pgsql.c
339--- nagios-plugins-1.4.13/plugins/check_pgsql.c 2008-05-07 12:02:42.000000000 +0200
340+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_pgsql.c 2008-12-15 22:10:59.000000000 +0100
341@@ -146,10 +146,6 @@
342 pgoptions = NULL; /* special options to start up the backend server */
343 pgtty = NULL; /* debugging tty for the backend server */
344
345- setlocale (LC_ALL, "");
346- bindtextdomain (PACKAGE, LOCALEDIR);
347- textdomain (PACKAGE);
348-
349 /* Parse extra opts if any */
350 argv=np_extra_opts (&argc, argv, progname);
351
352diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_ping.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ping.c
353--- nagios-plugins-1.4.13/plugins/check_ping.c 2008-05-07 12:02:42.000000000 +0200
354+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ping.c 2008-12-15 22:11:00.000000000 +0100
355@@ -84,11 +84,6 @@
356 int this_result = STATE_UNKNOWN;
357 int i;
358
359- setlocale (LC_ALL, "");
360- setlocale (LC_NUMERIC, "C");
361- bindtextdomain (PACKAGE, LOCALEDIR);
362- textdomain (PACKAGE);
363-
364 addresses = malloc (sizeof(char*) * max_addr);
365 addresses[0] = NULL;
366
367diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_procs.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_procs.c
368--- nagios-plugins-1.4.13/plugins/check_procs.c 2008-07-08 11:31:04.000000000 +0200
369+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_procs.c 2008-12-15 22:11:00.000000000 +0100
370@@ -133,11 +133,6 @@
371 int result = STATE_UNKNOWN;
372 output chld_out, chld_err;
373
374- setlocale (LC_ALL, "");
375- bindtextdomain (PACKAGE, LOCALEDIR);
376- textdomain (PACKAGE);
377- setlocale(LC_NUMERIC, "POSIX");
378-
379 input_buffer = malloc (MAX_INPUT_BUFFER);
380 procprog = malloc (MAX_INPUT_BUFFER);
381
382diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_radius.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_radius.c
383--- nagios-plugins-1.4.13/plugins/check_radius.c 2008-05-20 09:57:13.000000000 +0200
384+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_radius.c 2008-12-15 22:11:00.000000000 +0100
385@@ -145,10 +145,6 @@
386 UINT4 client_id;
387 char *str;
388
389- setlocale (LC_ALL, "");
390- bindtextdomain (PACKAGE, LOCALEDIR);
391- textdomain (PACKAGE);
392-
393 /* Parse extra opts if any */
394 argv=np_extra_opts (&argc, argv, progname);
395
396diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_real.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_real.c
397--- nagios-plugins-1.4.13/plugins/check_real.c 2008-05-07 12:02:42.000000000 +0200
398+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_real.c 2008-12-15 22:11:00.000000000 +0100
399@@ -73,10 +73,6 @@
400 char buffer[MAX_INPUT_BUFFER];
401 char *status_line = NULL;
402
403- setlocale (LC_ALL, "");
404- bindtextdomain (PACKAGE, LOCALEDIR);
405- textdomain (PACKAGE);
406-
407 /* Parse extra opts if any */
408 argv=np_extra_opts (&argc, argv, progname);
409
410diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_smtp.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_smtp.c
411--- nagios-plugins-1.4.13/plugins/check_smtp.c 2008-05-07 12:02:42.000000000 +0200
412+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_smtp.c 2008-12-15 22:11:00.000000000 +0100
413@@ -133,10 +133,6 @@
414 char *error_msg = "";
415 struct timeval tv;
416
417- setlocale (LC_ALL, "");
418- bindtextdomain (PACKAGE, LOCALEDIR);
419- textdomain (PACKAGE);
420-
421 /* Parse extra opts if any */
422 argv=np_extra_opts (&argc, argv, progname);
423
424diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_snmp.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_snmp.c
425--- nagios-plugins-1.4.13/plugins/check_snmp.c 2008-07-09 23:53:12.000000000 +0200
426+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_snmp.c 2008-12-15 22:11:00.000000000 +0100
427@@ -154,10 +154,6 @@
428 char *show = NULL;
429 char type[8] = "";
430
431- setlocale (LC_ALL, "");
432- bindtextdomain (PACKAGE, LOCALEDIR);
433- textdomain (PACKAGE);
434-
435 labels = malloc (labels_size);
436 unitv = malloc (unitv_size);
437 for (i = 0; i < MAX_OIDS; i++)
438diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_ssh.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ssh.c
439--- nagios-plugins-1.4.13/plugins/check_ssh.c 2008-05-07 12:02:42.000000000 +0200
440+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ssh.c 2008-12-15 22:11:00.000000000 +0100
441@@ -66,10 +66,6 @@
442 {
443 int result = STATE_UNKNOWN;
444
445- setlocale (LC_ALL, "");
446- bindtextdomain (PACKAGE, LOCALEDIR);
447- textdomain (PACKAGE);
448-
449 /* Parse extra opts if any */
450 argv=np_extra_opts (&argc, argv, progname);
451
452diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_swap.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_swap.c
453--- nagios-plugins-1.4.13/plugins/check_swap.c 2008-05-07 12:02:42.000000000 +0200
454+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_swap.c 2008-12-15 22:11:00.000000000 +0100
455@@ -101,10 +101,6 @@
456 char str[32];
457 char *status;
458
459- setlocale (LC_ALL, "");
460- bindtextdomain (PACKAGE, LOCALEDIR);
461- textdomain (PACKAGE);
462-
463 status = strdup ("");
464
465 /* Parse extra opts if any */
466diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_tcp.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_tcp.c
467--- nagios-plugins-1.4.13/plugins/check_tcp.c 2008-05-07 12:02:42.000000000 +0200
468+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_tcp.c 2008-12-15 22:11:00.000000000 +0100
469@@ -102,10 +102,6 @@
470 size_t len;
471 int match = -1;
472
473- setlocale (LC_ALL, "");
474- bindtextdomain (PACKAGE, LOCALEDIR);
475- textdomain (PACKAGE);
476-
477 /* determine program- and service-name quickly */
478 progname = strrchr(argv[0], '/');
479 if(progname != NULL) progname++;
480diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_time.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_time.c
481--- nagios-plugins-1.4.13/plugins/check_time.c 2008-05-07 12:02:42.000000000 +0200
482+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_time.c 2008-12-15 22:11:00.000000000 +0100
483@@ -71,10 +71,6 @@
484 int result = STATE_UNKNOWN;
485 time_t conntime;
486
487- setlocale (LC_ALL, "");
488- bindtextdomain (PACKAGE, LOCALEDIR);
489- textdomain (PACKAGE);
490-
491 /* Parse extra opts if any */
492 argv=np_extra_opts (&argc, argv, progname);
493
494diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_ups.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ups.c
495--- nagios-plugins-1.4.13/plugins/check_ups.c 2008-07-10 12:03:43.000000000 +0200
496+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_ups.c 2008-12-15 22:11:00.000000000 +0100
497@@ -111,10 +111,6 @@
498 double ups_utility_deviation = 0.0;
499 int res;
500
501- setlocale (LC_ALL, "");
502- bindtextdomain (PACKAGE, LOCALEDIR);
503- textdomain (PACKAGE);
504-
505 ups_status = strdup ("N/A");
506 data = strdup ("");
507 message = strdup ("");
508diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/check_users.c nagios-plugins-1.4.13-no-buggy-locales/plugins/check_users.c
509--- nagios-plugins-1.4.13/plugins/check_users.c 2008-05-07 12:02:42.000000000 +0200
510+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/check_users.c 2008-12-15 22:11:01.000000000 +0100
511@@ -59,10 +59,6 @@
512 char input_buffer[MAX_INPUT_BUFFER];
513 char *perf;
514
515- setlocale (LC_ALL, "");
516- bindtextdomain (PACKAGE, LOCALEDIR);
517- textdomain (PACKAGE);
518-
519 perf = strdup("");
520
521 /* Parse extra opts if any */
522diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/negate.c nagios-plugins-1.4.13-no-buggy-locales/plugins/negate.c
523--- nagios-plugins-1.4.13/plugins/negate.c 2008-05-02 11:28:15.000000000 +0200
524+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/negate.c 2008-12-15 22:11:01.000000000 +0100
525@@ -67,10 +67,6 @@
526 output chld_out, chld_err;
527 int i;
528
529- setlocale (LC_ALL, "");
530- bindtextdomain (PACKAGE, LOCALEDIR);
531- textdomain (PACKAGE);
532-
533 command_line = (char **) process_arguments (argc, argv);
534
535 /* Set signal handling and alarm */
536diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins/urlize.c nagios-plugins-1.4.13-no-buggy-locales/plugins/urlize.c
537--- nagios-plugins-1.4.13/plugins/urlize.c 2008-01-31 12:27:22.000000000 +0100
538+++ nagios-plugins-1.4.13-no-buggy-locales/plugins/urlize.c 2008-12-15 22:11:01.000000000 +0100
539@@ -67,10 +67,6 @@
540 {0, 0, 0, 0}
541 };
542
543- setlocale (LC_ALL, "");
544- bindtextdomain (PACKAGE, LOCALEDIR);
545- textdomain (PACKAGE);
546-
547 /* Need at least 2 args */
548 if (argc < 3) {
549 print_help();
550diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins-root/check_dhcp.c nagios-plugins-1.4.13-no-buggy-locales/plugins-root/check_dhcp.c
551--- nagios-plugins-1.4.13/plugins-root/check_dhcp.c 2008-07-06 14:57:11.000000000 +0200
552+++ nagios-plugins-1.4.13-no-buggy-locales/plugins-root/check_dhcp.c 2008-12-15 22:11:01.000000000 +0100
553@@ -263,10 +263,6 @@
554 int dhcp_socket;
555 int result = STATE_UNKNOWN;
556
557- setlocale (LC_ALL, "");
558- bindtextdomain (PACKAGE, LOCALEDIR);
559- textdomain (PACKAGE);
560-
561 /* Parse extra opts if any */
562 argv=np_extra_opts(&argc, argv, progname);
563
564diff -Naur --exclude '*.orig' nagios-plugins-1.4.13/plugins-root/check_icmp.c nagios-plugins-1.4.13-no-buggy-locales/plugins-root/check_icmp.c
565--- nagios-plugins-1.4.13/plugins-root/check_icmp.c 2008-08-08 04:08:08.000000000 +0200
566+++ nagios-plugins-1.4.13-no-buggy-locales/plugins-root/check_icmp.c 2008-12-15 22:11:01.000000000 +0100
567@@ -377,10 +377,6 @@
568 int result;
569 struct rta_host *host;
570
571- setlocale (LC_ALL, "");
572- bindtextdomain (PACKAGE, LOCALEDIR);
573- textdomain (PACKAGE);
574-
575 /* print a helpful error message if geteuid != 0 */
576 np_warn_if_not_root();
577