Updated error message format in getopt.c for win32 test case compatibility

This commit is contained in:
Thomas Jensen 2014-10-09 23:37:45 +02:00
parent c7c7329659
commit f6c6a175b0

View File

@ -814,7 +814,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
if (opterr)
{
/* 1003.2 specifies the format of this message. */
fprintf (stderr, _("%s: option requires an argument -- %c\n"),
fprintf (stderr, _("%s: option requires an argument -- '%c'\n"),
argv[0], c);
}
optopt = c;
@ -944,7 +944,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
{
/* 1003.2 specifies the format of this message. */
fprintf (stderr,
_("%s: option requires an argument -- %c\n"),
_("%s: option requires an argument -- '%c'\n"),
argv[0], c);
}
optopt = c;