diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-02-11 14:20:56 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-02-11 14:35:46 -0700 |
commit | 768483871f7d05689a92ec84d2182a1b6e3c0516 (patch) | |
tree | 61f7ee908b7ff0c498a272236a3d42160038df4e /proto.h | |
parent | 492a624f4a0c250e011c6b74a3403bfc885ec961 (diff) | |
download | perl-768483871f7d05689a92ec84d2182a1b6e3c0516.tar.gz |
Deprecate is_utf8_char()
This function assumes that there is enough space in the buffer to read
however many bytes are indicated by the first byte in the alleged UTF-8
encoded string. This may not be true, and so it can read beyond the
buffer end. is_utf8_char_buf() should be used instead.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1819,6 +1819,7 @@ PERL_CALLCONV bool Perl_is_utf8_ascii(pTHX_ const U8 *p) assert(p) PERL_CALLCONV STRLEN Perl_is_utf8_char(const U8 *s) + __attribute__deprecated__ __attribute__nonnull__(1); #define PERL_ARGS_ASSERT_IS_UTF8_CHAR \ assert(s) |