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:
parent
ee95f5b69f
commit
45e7d1abc0
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user