summaryrefslogtreecommitdiff
path: root/embed.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-26 19:01:05 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-26 19:01:05 +0000
commit02eb7b47b8a6793752e5b001af6e62c374b2c440 (patch)
tree07c212ac1a760e5468e7b769b861a1fe00d96718 /embed.pl
parent21477fb41342ef2f0f21af5ef95caf64eee65dee (diff)
downloadperl-02eb7b47b8a6793752e5b001af6e62c374b2c440.tar.gz
Make utf8_length() and utf8_distance() (the latter of which
is unused at the moment) to be less forgiving about bad UTF-8. p4raw-id: //depot/perl@7869
Diffstat (limited to 'embed.pl')
-rwxr-xr-xembed.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.pl b/embed.pl
index 1d35bf6917..6412ef6b9a 100755
--- a/embed.pl
+++ b/embed.pl
@@ -2072,7 +2072,7 @@ p |void |utilize |int aver|I32 floor|OP* version|OP* id|OP* arg
Ap |U8* |utf16_to_utf8 |U8* p|U8 *d|I32 bytelen|I32 *newlen
Ap |U8* |utf16_to_utf8_reversed|U8* p|U8 *d|I32 bytelen|I32 *newlen
Ap |STRLEN |utf8_length |U8* s|U8 *e
-Ap |I32 |utf8_distance |U8 *a|U8 *b
+Ap |IV |utf8_distance |U8 *a|U8 *b
Ap |U8* |utf8_hop |U8 *s|I32 off
ApM |U8* |utf8_to_bytes |U8 *s|STRLEN *len
ApM |U8* |bytes_to_utf8 |U8 *s|STRLEN *len