sl@0
|
1 |
/* Portion Copyright © 2008-09 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.*/
|
sl@0
|
2 |
#undef G_DISABLE_ASSERT
|
sl@0
|
3 |
#undef G_LOG_DOMAIN
|
sl@0
|
4 |
|
sl@0
|
5 |
#include <stdarg.h>
|
sl@0
|
6 |
#include <stdio.h>
|
sl@0
|
7 |
#include <stdlib.h>
|
sl@0
|
8 |
#include <string.h>
|
sl@0
|
9 |
#include <glib.h>
|
sl@0
|
10 |
|
sl@0
|
11 |
#ifdef __SYMBIAN32__
|
sl@0
|
12 |
#include "mrt2_glib2_test.h"
|
sl@0
|
13 |
#endif /*__SYMBIAN32__*/
|
sl@0
|
14 |
static gint exit_status = 0;
|
sl@0
|
15 |
|
sl@0
|
16 |
static void
|
sl@0
|
17 |
croak (char *format, ...)
|
sl@0
|
18 |
{
|
sl@0
|
19 |
va_list va;
|
sl@0
|
20 |
|
sl@0
|
21 |
va_start (va, format);
|
sl@0
|
22 |
vfprintf (stderr, format, va);
|
sl@0
|
23 |
va_end (va);
|
sl@0
|
24 |
|
sl@0
|
25 |
exit (1);
|
sl@0
|
26 |
}
|
sl@0
|
27 |
|
sl@0
|
28 |
static void
|
sl@0
|
29 |
fail (char *format, ...)
|
sl@0
|
30 |
{
|
sl@0
|
31 |
va_list va;
|
sl@0
|
32 |
|
sl@0
|
33 |
va_start (va, format);
|
sl@0
|
34 |
vfprintf (stderr, format, va);
|
sl@0
|
35 |
va_end (va);
|
sl@0
|
36 |
|
sl@0
|
37 |
exit_status |= 1;
|
sl@0
|
38 |
}
|
sl@0
|
39 |
|
sl@0
|
40 |
typedef enum
|
sl@0
|
41 |
{
|
sl@0
|
42 |
VALID,
|
sl@0
|
43 |
INCOMPLETE,
|
sl@0
|
44 |
NOTUNICODE,
|
sl@0
|
45 |
OVERLONG,
|
sl@0
|
46 |
MALFORMED
|
sl@0
|
47 |
} Status;
|
sl@0
|
48 |
|
sl@0
|
49 |
static gboolean
|
sl@0
|
50 |
ucs4_equal (gunichar *a, gunichar *b)
|
sl@0
|
51 |
{
|
sl@0
|
52 |
while (*a && *b && (*a == *b))
|
sl@0
|
53 |
{
|
sl@0
|
54 |
a++;
|
sl@0
|
55 |
b++;
|
sl@0
|
56 |
}
|
sl@0
|
57 |
|
sl@0
|
58 |
return (*a == *b);
|
sl@0
|
59 |
}
|
sl@0
|
60 |
|
sl@0
|
61 |
static gboolean
|
sl@0
|
62 |
utf16_equal (gunichar2 *a, gunichar2 *b)
|
sl@0
|
63 |
{
|
sl@0
|
64 |
while (*a && *b && (*a == *b))
|
sl@0
|
65 |
{
|
sl@0
|
66 |
a++;
|
sl@0
|
67 |
b++;
|
sl@0
|
68 |
}
|
sl@0
|
69 |
|
sl@0
|
70 |
return (*a == *b);
|
sl@0
|
71 |
}
|
sl@0
|
72 |
|
sl@0
|
73 |
static gint
|
sl@0
|
74 |
utf16_count (gunichar2 *a)
|
sl@0
|
75 |
{
|
sl@0
|
76 |
gint result = 0;
|
sl@0
|
77 |
|
sl@0
|
78 |
while (a[result])
|
sl@0
|
79 |
result++;
|
sl@0
|
80 |
|
sl@0
|
81 |
return result;
|
sl@0
|
82 |
}
|
sl@0
|
83 |
|
sl@0
|
84 |
static void
|
sl@0
|
85 |
process (gint line,
|
sl@0
|
86 |
gchar *utf8,
|
sl@0
|
87 |
Status status,
|
sl@0
|
88 |
gunichar *ucs4,
|
sl@0
|
89 |
gint ucs4_len)
|
sl@0
|
90 |
{
|
sl@0
|
91 |
const gchar *end;
|
sl@0
|
92 |
gboolean is_valid = g_utf8_validate (utf8, -1, &end);
|
sl@0
|
93 |
GError *error = NULL;
|
sl@0
|
94 |
glong items_read, items_written;
|
sl@0
|
95 |
|
sl@0
|
96 |
switch (status)
|
sl@0
|
97 |
{
|
sl@0
|
98 |
case VALID:
|
sl@0
|
99 |
if (!is_valid)
|
sl@0
|
100 |
{
|
sl@0
|
101 |
fail ("line %d: valid but g_utf8_validate returned FALSE\n", line);
|
sl@0
|
102 |
return;
|
sl@0
|
103 |
}
|
sl@0
|
104 |
break;
|
sl@0
|
105 |
case NOTUNICODE:
|
sl@0
|
106 |
case INCOMPLETE:
|
sl@0
|
107 |
case OVERLONG:
|
sl@0
|
108 |
case MALFORMED:
|
sl@0
|
109 |
if (is_valid)
|
sl@0
|
110 |
{
|
sl@0
|
111 |
fail ("line %d: invalid but g_utf8_validate returned TRUE\n", line);
|
sl@0
|
112 |
return;
|
sl@0
|
113 |
}
|
sl@0
|
114 |
break;
|
sl@0
|
115 |
}
|
sl@0
|
116 |
|
sl@0
|
117 |
if (status == INCOMPLETE)
|
sl@0
|
118 |
{
|
sl@0
|
119 |
gunichar *ucs4_result;
|
sl@0
|
120 |
|
sl@0
|
121 |
ucs4_result = g_utf8_to_ucs4 (utf8, -1, NULL, NULL, &error);
|
sl@0
|
122 |
|
sl@0
|
123 |
if (!error || !g_error_matches (error, G_CONVERT_ERROR, G_CONVERT_ERROR_PARTIAL_INPUT))
|
sl@0
|
124 |
{
|
sl@0
|
125 |
fail ("line %d: incomplete input not properly detected\n", line);
|
sl@0
|
126 |
return;
|
sl@0
|
127 |
}
|
sl@0
|
128 |
g_clear_error (&error);
|
sl@0
|
129 |
|
sl@0
|
130 |
ucs4_result = g_utf8_to_ucs4 (utf8, -1, &items_read, NULL, &error);
|
sl@0
|
131 |
|
sl@0
|
132 |
if (!ucs4_result || items_read == strlen (utf8))
|
sl@0
|
133 |
{
|
sl@0
|
134 |
fail ("line %d: incomplete input not properly detected\n", line);
|
sl@0
|
135 |
return;
|
sl@0
|
136 |
}
|
sl@0
|
137 |
|
sl@0
|
138 |
g_free (ucs4_result);
|
sl@0
|
139 |
}
|
sl@0
|
140 |
|
sl@0
|
141 |
if (status == VALID || status == NOTUNICODE)
|
sl@0
|
142 |
{
|
sl@0
|
143 |
gunichar *ucs4_result;
|
sl@0
|
144 |
gchar *utf8_result;
|
sl@0
|
145 |
|
sl@0
|
146 |
ucs4_result = g_utf8_to_ucs4 (utf8, -1, &items_read, &items_written, &error);
|
sl@0
|
147 |
if (!ucs4_result)
|
sl@0
|
148 |
{
|
sl@0
|
149 |
fail ("line %d: conversion to ucs4 failed: %s\n", line, error->message);
|
sl@0
|
150 |
return;
|
sl@0
|
151 |
}
|
sl@0
|
152 |
|
sl@0
|
153 |
if (!ucs4_equal (ucs4_result, ucs4) ||
|
sl@0
|
154 |
items_read != strlen (utf8) ||
|
sl@0
|
155 |
items_written != ucs4_len)
|
sl@0
|
156 |
{
|
sl@0
|
157 |
fail ("line %d: results of conversion to ucs4 do not match expected.\n", line);
|
sl@0
|
158 |
return;
|
sl@0
|
159 |
}
|
sl@0
|
160 |
|
sl@0
|
161 |
g_free (ucs4_result);
|
sl@0
|
162 |
|
sl@0
|
163 |
ucs4_result = g_utf8_to_ucs4_fast (utf8, -1, &items_written);
|
sl@0
|
164 |
|
sl@0
|
165 |
if (!ucs4_equal (ucs4_result, ucs4) ||
|
sl@0
|
166 |
items_written != ucs4_len)
|
sl@0
|
167 |
{
|
sl@0
|
168 |
fail ("line %d: results of conversion to ucs4 do not match expected.\n", line);
|
sl@0
|
169 |
return;
|
sl@0
|
170 |
}
|
sl@0
|
171 |
|
sl@0
|
172 |
utf8_result = g_ucs4_to_utf8 (ucs4_result, -1, &items_read, &items_written, &error);
|
sl@0
|
173 |
if (!utf8_result)
|
sl@0
|
174 |
{
|
sl@0
|
175 |
fail ("line %d: conversion back to utf8 failed: %s", line, error->message);
|
sl@0
|
176 |
return;
|
sl@0
|
177 |
}
|
sl@0
|
178 |
|
sl@0
|
179 |
if (strcmp (utf8_result, utf8) != 0 ||
|
sl@0
|
180 |
items_read != ucs4_len ||
|
sl@0
|
181 |
items_written != strlen (utf8))
|
sl@0
|
182 |
{
|
sl@0
|
183 |
fail ("line %d: conversion back to utf8 did not match original\n", line);
|
sl@0
|
184 |
return;
|
sl@0
|
185 |
}
|
sl@0
|
186 |
|
sl@0
|
187 |
g_free (utf8_result);
|
sl@0
|
188 |
g_free (ucs4_result);
|
sl@0
|
189 |
}
|
sl@0
|
190 |
|
sl@0
|
191 |
if (status == VALID)
|
sl@0
|
192 |
{
|
sl@0
|
193 |
gunichar2 *utf16_expected_tmp;
|
sl@0
|
194 |
gunichar2 *utf16_expected;
|
sl@0
|
195 |
gunichar2 *utf16_from_utf8;
|
sl@0
|
196 |
gunichar2 *utf16_from_ucs4;
|
sl@0
|
197 |
gunichar *ucs4_result;
|
sl@0
|
198 |
gsize bytes_written;
|
sl@0
|
199 |
gint n_chars;
|
sl@0
|
200 |
gchar *utf8_result;
|
sl@0
|
201 |
|
sl@0
|
202 |
#if defined(G_PLATFORM_WIN32) || defined(__SYMBIAN32__)
|
sl@0
|
203 |
#define TARGET "UTF-16LE"
|
sl@0
|
204 |
#else
|
sl@0
|
205 |
#define TARGET "UTF-16"
|
sl@0
|
206 |
#endif
|
sl@0
|
207 |
|
sl@0
|
208 |
if (!(utf16_expected_tmp = (gunichar2 *)g_convert (utf8, -1, TARGET, "UTF-8",
|
sl@0
|
209 |
NULL, &bytes_written, NULL)))
|
sl@0
|
210 |
{
|
sl@0
|
211 |
fail ("line %d: could not convert to UTF-16 via g_convert\n", line);
|
sl@0
|
212 |
return;
|
sl@0
|
213 |
}
|
sl@0
|
214 |
|
sl@0
|
215 |
/* zero-terminate and remove BOM
|
sl@0
|
216 |
*/
|
sl@0
|
217 |
n_chars = bytes_written / 2;
|
sl@0
|
218 |
if (utf16_expected_tmp[0] == 0xfeff) /* BOM */
|
sl@0
|
219 |
{
|
sl@0
|
220 |
n_chars--;
|
sl@0
|
221 |
utf16_expected = g_new (gunichar2, n_chars + 1);
|
sl@0
|
222 |
memcpy (utf16_expected, utf16_expected_tmp + 1, sizeof(gunichar2) * n_chars);
|
sl@0
|
223 |
}
|
sl@0
|
224 |
else if (utf16_expected_tmp[0] == 0xfffe) /* ANTI-BOM */
|
sl@0
|
225 |
{
|
sl@0
|
226 |
fail ("line %d: conversion via iconv to \"UTF-16\" is not native-endian\n", line);
|
sl@0
|
227 |
return;
|
sl@0
|
228 |
}
|
sl@0
|
229 |
else
|
sl@0
|
230 |
{
|
sl@0
|
231 |
utf16_expected = g_new (gunichar2, n_chars + 1);
|
sl@0
|
232 |
memcpy (utf16_expected, utf16_expected_tmp, sizeof(gunichar2) * n_chars);
|
sl@0
|
233 |
}
|
sl@0
|
234 |
|
sl@0
|
235 |
utf16_expected[n_chars] = '\0';
|
sl@0
|
236 |
|
sl@0
|
237 |
if (!(utf16_from_utf8 = g_utf8_to_utf16 (utf8, -1, &items_read, &items_written, &error)))
|
sl@0
|
238 |
{
|
sl@0
|
239 |
fail ("line %d: conversion to ucs16 failed: %s\n", line, error->message);
|
sl@0
|
240 |
return;
|
sl@0
|
241 |
}
|
sl@0
|
242 |
|
sl@0
|
243 |
if (items_read != strlen (utf8) ||
|
sl@0
|
244 |
utf16_count (utf16_from_utf8) != items_written)
|
sl@0
|
245 |
{
|
sl@0
|
246 |
fail ("line %d: length error in conversion to ucs16\n", line);
|
sl@0
|
247 |
return;
|
sl@0
|
248 |
}
|
sl@0
|
249 |
|
sl@0
|
250 |
if (!(utf16_from_ucs4 = g_ucs4_to_utf16 (ucs4, -1, &items_read, &items_written, &error)))
|
sl@0
|
251 |
{
|
sl@0
|
252 |
fail ("line %d: conversion to ucs16 failed: %s\n", line, error->message);
|
sl@0
|
253 |
return;
|
sl@0
|
254 |
}
|
sl@0
|
255 |
|
sl@0
|
256 |
if (items_read != ucs4_len ||
|
sl@0
|
257 |
utf16_count (utf16_from_ucs4) != items_written)
|
sl@0
|
258 |
{
|
sl@0
|
259 |
fail ("line %d: length error in conversion to ucs16\n", line);
|
sl@0
|
260 |
return;
|
sl@0
|
261 |
}
|
sl@0
|
262 |
|
sl@0
|
263 |
if (!utf16_equal (utf16_from_utf8, utf16_expected) ||
|
sl@0
|
264 |
!utf16_equal (utf16_from_ucs4, utf16_expected))
|
sl@0
|
265 |
{
|
sl@0
|
266 |
fail ("line %d: results of conversion to ucs16 do not match\n", line);
|
sl@0
|
267 |
return;
|
sl@0
|
268 |
}
|
sl@0
|
269 |
|
sl@0
|
270 |
if (!(utf8_result = g_utf16_to_utf8 (utf16_from_utf8, -1, &items_read, &items_written, &error)))
|
sl@0
|
271 |
{
|
sl@0
|
272 |
fail ("line %d: conversion back to utf8 failed: %s\n", line, error->message);
|
sl@0
|
273 |
return;
|
sl@0
|
274 |
}
|
sl@0
|
275 |
|
sl@0
|
276 |
if (items_read != utf16_count (utf16_from_utf8) ||
|
sl@0
|
277 |
items_written != strlen (utf8))
|
sl@0
|
278 |
{
|
sl@0
|
279 |
fail ("line %d: length error in conversion from ucs16 to utf8\n", line);
|
sl@0
|
280 |
return;
|
sl@0
|
281 |
}
|
sl@0
|
282 |
|
sl@0
|
283 |
if (!(ucs4_result = g_utf16_to_ucs4 (utf16_from_ucs4, -1, &items_read, &items_written, &error)))
|
sl@0
|
284 |
{
|
sl@0
|
285 |
fail ("line %d: conversion back to utf8/ucs4 failed\n", line);
|
sl@0
|
286 |
return;
|
sl@0
|
287 |
}
|
sl@0
|
288 |
|
sl@0
|
289 |
if (items_read != utf16_count (utf16_from_utf8) ||
|
sl@0
|
290 |
items_written != ucs4_len)
|
sl@0
|
291 |
{
|
sl@0
|
292 |
fail ("line %d: length error in conversion from ucs16 to ucs4\n", line);
|
sl@0
|
293 |
return;
|
sl@0
|
294 |
}
|
sl@0
|
295 |
|
sl@0
|
296 |
if (strcmp (utf8, utf8_result) != 0 ||
|
sl@0
|
297 |
!ucs4_equal (ucs4, ucs4_result))
|
sl@0
|
298 |
{
|
sl@0
|
299 |
fail ("line %d: conversion back to utf8/ucs4 did not match original\n", line);
|
sl@0
|
300 |
return;
|
sl@0
|
301 |
}
|
sl@0
|
302 |
|
sl@0
|
303 |
g_free (utf16_expected_tmp);
|
sl@0
|
304 |
g_free (utf16_expected);
|
sl@0
|
305 |
g_free (utf16_from_utf8);
|
sl@0
|
306 |
g_free (utf16_from_ucs4);
|
sl@0
|
307 |
g_free (utf8_result);
|
sl@0
|
308 |
g_free (ucs4_result);
|
sl@0
|
309 |
}
|
sl@0
|
310 |
}
|
sl@0
|
311 |
|
sl@0
|
312 |
int
|
sl@0
|
313 |
main (int argc, char **argv)
|
sl@0
|
314 |
{
|
sl@0
|
315 |
gchar *srcdir = getenv ("srcdir");
|
sl@0
|
316 |
gchar *testfile;
|
sl@0
|
317 |
gchar *contents;
|
sl@0
|
318 |
GError *error = NULL;
|
sl@0
|
319 |
gchar *p, *end;
|
sl@0
|
320 |
char *tmp;
|
sl@0
|
321 |
gint state = 0;
|
sl@0
|
322 |
gint line = 1;
|
sl@0
|
323 |
gint start_line = 0; /* Quiet GCC */
|
sl@0
|
324 |
gchar *utf8 = NULL; /* Quiet GCC */
|
sl@0
|
325 |
GArray *ucs4;
|
sl@0
|
326 |
Status status = VALID; /* Quiet GCC */
|
sl@0
|
327 |
|
sl@0
|
328 |
#ifdef __SYMBIAN32__
|
sl@0
|
329 |
|
sl@0
|
330 |
g_log_set_handler (NULL, G_LOG_FLAG_FATAL| G_LOG_FLAG_RECURSION | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_INFO | G_LOG_LEVEL_DEBUG, &mrtLogHandler, NULL);
|
sl@0
|
331 |
g_set_print_handler(mrtPrintHandler);
|
sl@0
|
332 |
#endif /*__SYMBIAN32__*/
|
sl@0
|
333 |
if (!srcdir)
|
sl@0
|
334 |
srcdir = "c:";
|
sl@0
|
335 |
|
sl@0
|
336 |
testfile = g_strconcat (srcdir, G_DIR_SEPARATOR_S "utf8.txt", NULL);
|
sl@0
|
337 |
|
sl@0
|
338 |
g_file_get_contents (testfile, &contents, NULL, &error);
|
sl@0
|
339 |
if (error)
|
sl@0
|
340 |
{
|
sl@0
|
341 |
croak ("Cannot open utf8.txt: %s", error->message);
|
sl@0
|
342 |
|
sl@0
|
343 |
#ifdef __SYMBIAN32__
|
sl@0
|
344 |
testResultXml("unicode-encoding");
|
sl@0
|
345 |
#endif /* EMULATOR */
|
sl@0
|
346 |
|
sl@0
|
347 |
exit(1);
|
sl@0
|
348 |
}
|
sl@0
|
349 |
|
sl@0
|
350 |
ucs4 = g_array_new (TRUE, FALSE, sizeof(gunichar));
|
sl@0
|
351 |
|
sl@0
|
352 |
p = contents;
|
sl@0
|
353 |
|
sl@0
|
354 |
/* Loop over lines */
|
sl@0
|
355 |
while (*p)
|
sl@0
|
356 |
{
|
sl@0
|
357 |
while (*p && (*p == ' ' || *p == '\t'))
|
sl@0
|
358 |
p++;
|
sl@0
|
359 |
|
sl@0
|
360 |
end = p;
|
sl@0
|
361 |
while (*end && (*end != '\r' && *end != '\n'))
|
sl@0
|
362 |
end++;
|
sl@0
|
363 |
|
sl@0
|
364 |
if (!*p || *p == '#' || *p == '\r' || *p == '\n')
|
sl@0
|
365 |
goto next_line;
|
sl@0
|
366 |
|
sl@0
|
367 |
tmp = g_strstrip (g_strndup (p, end - p));
|
sl@0
|
368 |
|
sl@0
|
369 |
switch (state)
|
sl@0
|
370 |
{
|
sl@0
|
371 |
case 0:
|
sl@0
|
372 |
/* UTF-8 string */
|
sl@0
|
373 |
start_line = line;
|
sl@0
|
374 |
utf8 = tmp;
|
sl@0
|
375 |
tmp = NULL;
|
sl@0
|
376 |
break;
|
sl@0
|
377 |
|
sl@0
|
378 |
case 1:
|
sl@0
|
379 |
/* Status */
|
sl@0
|
380 |
if (!strcmp (tmp, "VALID"))
|
sl@0
|
381 |
status = VALID;
|
sl@0
|
382 |
else if (!strcmp (tmp, "INCOMPLETE"))
|
sl@0
|
383 |
status = INCOMPLETE;
|
sl@0
|
384 |
else if (!strcmp (tmp, "NOTUNICODE"))
|
sl@0
|
385 |
status = NOTUNICODE;
|
sl@0
|
386 |
else if (!strcmp (tmp, "OVERLONG"))
|
sl@0
|
387 |
status = OVERLONG;
|
sl@0
|
388 |
else if (!strcmp (tmp, "MALFORMED"))
|
sl@0
|
389 |
status = MALFORMED;
|
sl@0
|
390 |
else
|
sl@0
|
391 |
croak ("Invalid status on line %d\n", line);
|
sl@0
|
392 |
|
sl@0
|
393 |
if (status != VALID && status != NOTUNICODE)
|
sl@0
|
394 |
state++; /* No UCS-4 data */
|
sl@0
|
395 |
|
sl@0
|
396 |
break;
|
sl@0
|
397 |
|
sl@0
|
398 |
case 2:
|
sl@0
|
399 |
/* UCS-4 version */
|
sl@0
|
400 |
|
sl@0
|
401 |
p = strtok (tmp, " \t");
|
sl@0
|
402 |
while (p)
|
sl@0
|
403 |
{
|
sl@0
|
404 |
gchar *endptr;
|
sl@0
|
405 |
|
sl@0
|
406 |
gunichar ch = strtoul (p, &endptr, 16);
|
sl@0
|
407 |
if (*endptr != '\0')
|
sl@0
|
408 |
croak ("Invalid UCS-4 character on line %d\n", line);
|
sl@0
|
409 |
|
sl@0
|
410 |
g_array_append_val (ucs4, ch);
|
sl@0
|
411 |
|
sl@0
|
412 |
p = strtok (NULL, " \t");
|
sl@0
|
413 |
}
|
sl@0
|
414 |
|
sl@0
|
415 |
break;
|
sl@0
|
416 |
}
|
sl@0
|
417 |
|
sl@0
|
418 |
g_free (tmp);
|
sl@0
|
419 |
state = (state + 1) % 3;
|
sl@0
|
420 |
|
sl@0
|
421 |
if (state == 0)
|
sl@0
|
422 |
{
|
sl@0
|
423 |
process (start_line, utf8, status, (gunichar *)ucs4->data, ucs4->len);
|
sl@0
|
424 |
g_array_set_size (ucs4, 0);
|
sl@0
|
425 |
g_free (utf8);
|
sl@0
|
426 |
}
|
sl@0
|
427 |
|
sl@0
|
428 |
next_line:
|
sl@0
|
429 |
p = end;
|
sl@0
|
430 |
if (*p && *p == '\r')
|
sl@0
|
431 |
p++;
|
sl@0
|
432 |
if (*p && *p == '\n')
|
sl@0
|
433 |
p++;
|
sl@0
|
434 |
|
sl@0
|
435 |
line++;
|
sl@0
|
436 |
}
|
sl@0
|
437 |
|
sl@0
|
438 |
#ifdef __SYMBIAN32__
|
sl@0
|
439 |
testResultXml("unicode-encoding");
|
sl@0
|
440 |
#endif /* EMULATOR */
|
sl@0
|
441 |
return exit_status;
|
sl@0
|
442 |
}
|