]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Tweak an error message.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Aug 2002 19:58:43 +0000 (19:58 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:43 +0000 (12:08 +0200)
src/ChangeLog
src/read-mo.c

index b6788045fd51b51e4e52d328508ddbaf29fc2718..91d3dccb25f8c83d6b7b0194b2ce07aa7906ec17 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-02  Bruno Haible  <bruno@clisp.org>
+
+       * read-mo.c (get_sysdep_string): Make the error message easier to
+       translate.
+
 2002-07-25  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.11.4 released.
index 4d2ebb004759918d16c49698358cefd38bc74c2b..998e7e0edfef7b21d6824247e092aca237be6464 100644 (file)
@@ -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;
     }