From 148f804340582b997d643b9e280a6fbe0b2d7b5a Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Sat, 21 Dec 2002 11:37:05 +0000 Subject: [PATCH] Mark the INVALID keyword as being deprecated since the concept of "invalid runes" is useless without the rest of the deprecated rune interface. --- usr.bin/mklocale/mklocale.1 | 1 + usr.bin/mklocale/yacc.y | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.bin/mklocale/mklocale.1 b/usr.bin/mklocale/mklocale.1 index 26184af7443c..7db31cca37e8 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 546f343aa316..9709400f3b8c 100644 --- a/usr.bin/mklocale/yacc.y +++ b/usr.bin/mklocale/yacc.y @@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include @@ -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