158e47ea2b
unrecoverable error occurs. (#208592)
67 lines
1.8 KiB
Diff
67 lines
1.8 KiB
Diff
diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c
|
|
--- paps-0.6.6.orig/src/paps.c 2006-09-30 02:51:39.000000000 +0900
|
|
+++ paps-0.6.6/src/paps.c 2006-09-30 03:00:26.000000000 +0900
|
|
@@ -346,7 +346,7 @@
|
|
if (!IN)
|
|
{
|
|
fprintf(stderr, "Failed to open %s!\n", filename_in);
|
|
- exit(-1);
|
|
+ exit(1);
|
|
}
|
|
}
|
|
else
|
|
@@ -457,7 +457,7 @@
|
|
if (cvh == NULL)
|
|
{
|
|
fprintf(stderr, "%s: Invalid encoding: %s\n", g_get_prgname (), encoding);
|
|
- exit(-1);
|
|
+ exit(1);
|
|
}
|
|
}
|
|
|
|
@@ -517,7 +517,7 @@
|
|
{
|
|
fprintf(stderr, "%s: Error reading file.\n", g_get_prgname ());
|
|
g_string_free (inbuf, TRUE);
|
|
- return NULL;
|
|
+ exit(1);
|
|
}
|
|
else if (bp == NULL)
|
|
break;
|
|
@@ -531,7 +531,7 @@
|
|
if (g_iconv (handle, &ib, &iblen, &ob, &oblen) == -1)
|
|
{
|
|
fprintf (stderr, "%s: Error while converting strings.\n", g_get_prgname ());
|
|
- return NULL;
|
|
+ exit(1);
|
|
}
|
|
obuffer[BUFSIZE * 6 - 1 - oblen] = 0;
|
|
}
|
|
@@ -591,7 +591,7 @@
|
|
if (wtext == NULL)
|
|
{
|
|
fprintf (stderr, "Failed to convert UTF-8 to UCS-4.\n");
|
|
- return NULL;
|
|
+ exit(1);
|
|
}
|
|
|
|
len = wcswidth (wtext);
|
|
@@ -604,7 +604,7 @@
|
|
{
|
|
fprintf (stderr, "Failed to allocate a memory.\n");
|
|
g_free (wtext);
|
|
- return NULL;
|
|
+ exit(1);
|
|
}
|
|
for (i = 0; i < len; i++)
|
|
{
|
|
@@ -619,7 +619,7 @@
|
|
if (newtext == NULL)
|
|
{
|
|
fprintf (stderr, "Failed to convert UCS-4 to UTF-8.\n");
|
|
- return NULL;
|
|
+ exit(1);
|
|
}
|
|
|
|
pango_layout_set_text (para->layout, newtext, -1);
|