From: Bruno Haible Date: Fri, 2 Aug 2002 19:58:43 +0000 (+0000) Subject: Tweak an error message. X-Git-Tag: 0.11.5-branchpoint~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d1a39b24a173de797b279629fcb31b6d313bc51;p=thirdparty%2Fgettext.git Tweak an error message. --- diff --git a/src/ChangeLog b/src/ChangeLog index b6788045f..91d3dccb2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-08-02 Bruno Haible + + * read-mo.c (get_sysdep_string): Make the error message easier to + translate. + 2002-07-25 Bruno Haible * gettext-0.11.4 released. diff --git a/src/read-mo.c b/src/read-mo.c index 4d2ebb004..998e7e0ed 100644 --- a/src/read-mo.c +++ b/src/read-mo.c @@ -187,9 +187,13 @@ get_sysdep_string (bfp, offset, header, lengthp) if (ss_offset + ss_length > bfp->size) error (EXIT_FAILURE, 0, _("file \"%s\" is truncated"), bfp->filename); if (!(ss_length > 0 && bfp->data[ss_offset + ss_length - 1] == '\0')) - error (EXIT_FAILURE, 0, - _("file \"%s\" contains a not NUL terminated sysdep segment"), - bfp->filename); + { + char location[30]; + sprintf (location, "sysdep_segment[%u]", (unsigned int) sysdepref); + error (EXIT_FAILURE, 0, + _("file \"%s\" contains a not NUL terminated string, at %s"), + bfp->filename, location); + } length += 1 + strlen (bfp->data + ss_offset) + 1; }