Mark the INVALID keyword as being deprecated since the concept of

"invalid runes" is useless without the rest of the deprecated rune interface.
This commit is contained in:
tjr 2002-12-21 11:37:05 +00:00
parent ee95f5b69f
commit 45e7d1abc0
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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