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
e43e24711b
commit
148f804340
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108158
@ -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