summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-12-21 11:37:05 +0000
committertjr <tjr@FreeBSD.org>2002-12-21 11:37:05 +0000
commitc877a609a92a1161f69d1d6a8a883e61600dcbb2 (patch)
tree54ea049d5b641e295e9cba8795f210b37c6dae0c
parent74619d7495a813ca5a3dfc5f280215216b5b526e (diff)
downloadFreeBSD-src-c877a609a92a1161f69d1d6a8a883e61600dcbb2.zip
FreeBSD-src-c877a609a92a1161f69d1d6a8a883e61600dcbb2.tar.gz
Mark the INVALID keyword as being deprecated since the concept of
"invalid runes" is useless without the rest of the deprecated rune interface.
-rw-r--r--usr.bin/mklocale/mklocale.11
-rw-r--r--usr.bin/mklocale/yacc.y5
2 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/mklocale/mklocale.1 b/usr.bin/mklocale/mklocale.1
index 26184af..7db31cc 100644
--- a/usr.bin/mklocale/mklocale.1
+++ b/usr.bin/mklocale/mklocale.1
@@ -179,6 +179,7 @@ See
.Xr euc 4
for further details.
.It Dv INVALID
+(deprecated)
A single
.Dv RUNE
follows and is used as the invalid rune for this locale.
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y
index 546f343..9709400 100644
--- a/usr.bin/mklocale/yacc.y
+++ b/usr.bin/mklocale/yacc.y
@@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$");
#include <arpa/inet.h>
#include <ctype.h>
+#include <err.h>
#include <rune.h>
#include <stddef.h>
#include <stdio.h>
@@ -122,7 +123,9 @@ entry : ENCODING STRING
strcpy((char *)new_locale.variable, $1);
}
| INVALID RUNE
- { new_locale.invalid_rune = $2; }
+ { warnx("the INVALID keyword is deprecated");
+ new_locale.invalid_rune = $2;
+ }
| LIST list
{ set_map(&types, $2, $1); }
| MAPLOWER map
OpenPOWER on IntegriCloud