summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2002-10-20 23:09:26 +0000
committerache <ache@FreeBSD.org>2002-10-20 23:09:26 +0000
commit372039cd6ff7cd063901f2520a41ee3a37345668 (patch)
tree4c7f41f842666513cc0b93e3b362fde4aeb274ab
parent137577c9f259c6fdd199212fb31cd1ebfe757850 (diff)
downloadFreeBSD-src-372039cd6ff7cd063901f2520a41ee3a37345668.zip
FreeBSD-src-372039cd6ff7cd063901f2520a41ee3a37345668.tar.gz
Use more verbose diagnostics for wrong DIGIT range
-rw-r--r--usr.bin/mklocale/yacc.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y
index 2255ffa..546f343 100644
--- a/usr.bin/mklocale/yacc.y
+++ b/usr.bin/mklocale/yacc.y
@@ -577,24 +577,24 @@ dump_tables()
if (first_d < 0)
first_d = curr_d = x;
else if (x != curr_d + 1) {
- fprintf(stderr, "Error: DIGIT is not contiguous\n");
+ fprintf(stderr, "Error: DIGIT range is not contiguous\n");
exit(1);
} else if (x - first_d > 9) {
- fprintf(stderr, "Error: DIGIT is too big\n");
+ fprintf(stderr, "Error: DIGIT range is too big\n");
exit(1);
} else
curr_d++;
if (!(r & _CTYPE_X)) {
- fprintf(stderr, "Error: DIGIT is not subset of XDIGIT\n");
+ fprintf(stderr, "Error: DIGIT range is not a subset of XDIGIT range\n");
exit(1);
}
}
}
if (first_d < 0) {
- fprintf(stderr, "Error: no DIGIT defined\n");
+ fprintf(stderr, "Error: no DIGIT range defined in the single byte area\n");
exit(1);
} else if (curr_d - first_d < 9) {
- fprintf(stderr, "Error: DIGIT is too small\n");
+ fprintf(stderr, "Error: DIGIT range is too small in the single byte area\n");
exit(1);
}
OpenPOWER on IntegriCloud