#include <string.h>
#include <error.h>
-#include "error-progname.h"
#include "message.h"
#include "read-catalog-abstract.h"
#include "xalloc.h"
#define utf8_buffer_append_lone_surrogate(uc, line) \
do \
{ \
- error_with_progname = false; \
catr->xeh->xerror (CAT_SEVERITY_ERROR, NULL, \
real_file_name, (line), (size_t)(-1), false, \
xasprintf (_("warning: lone surrogate U+%04X"), \
(uc))); \
- error_with_progname = true; \
utf8_buffer_ensure_available (3); \
utf8_buffer[utf8_buflen++] = 0xef; \
utf8_buffer[utf8_buflen++] = 0xbf; \
utf8_buffer_ensure_available (6);
len = u8_uctomb (utf8_buffer + utf8_buflen, uc, 6);
if (len < 0)
- {
- error_with_progname = false;
- catr->xeh->xerror (CAT_SEVERITY_ERROR, NULL,
- real_file_name, pos.line_number, (size_t)(-1),
- false,
- _("warning: invalid Unicode character"));
- error_with_progname = true;
- }
+ catr->xeh->xerror (CAT_SEVERITY_ERROR, NULL,
+ real_file_name, pos.line_number, (size_t)(-1),
+ false,
+ _("warning: invalid Unicode character"));
else
utf8_buflen += len;
utf8_buffer_ensure_available (3);
len = u8_uctomb (utf8_buffer + utf8_buflen, uc, 3);
if (len < 0)
- {
- error_with_progname = false;
- catr->xeh->xerror (CAT_SEVERITY_ERROR, NULL,
- real_file_name, pos.line_number, (size_t)(-1),
- false,
- _("warning: invalid Unicode character"));
- error_with_progname = true;
- }
+ catr->xeh->xerror (CAT_SEVERITY_ERROR, NULL,
+ real_file_name, pos.line_number, (size_t)(-1),
+ false,
+ _("warning: invalid Unicode character"));
else
utf8_buflen += len;
}
#include <textstyle.h>
#include "fwriteerror.h"
-#include "error-progname.h"
#include "xvasprintf.h"
#include "xerror-handler.h"
#include "gettext.h"
}
if (has_context != NULL)
- {
- error_with_progname = false;
- xeh->xerror (CAT_SEVERITY_FATAL_ERROR, NULL,
- has_context->file_name, has_context->line_number,
- (size_t)(-1), false,
- _("message catalog has context dependent translations, but the output format does not support them."));
- error_with_progname = true;
- }
+ xeh->xerror (CAT_SEVERITY_FATAL_ERROR, NULL,
+ has_context->file_name, has_context->line_number,
+ (size_t)(-1), false,
+ _("message catalog has context dependent translations, but the output format does not support them."));
}
if (!output_syntax->supports_plurals)
if (has_plural != NULL)
{
- error_with_progname = false;
if (output_syntax->alternative_is_java_class)
xeh->xerror (CAT_SEVERITY_FATAL_ERROR, NULL,
has_plural->file_name, has_plural->line_number,
has_plural->file_name, has_plural->line_number,
(size_t)(-1), false,
_("message catalog has plural form translations, but the output format does not support them."));
- error_with_progname = true;
}
}
}