Skip to content

Commit 07341a2

Browse files
committed
Update PL/Perl's comment about hv_store().
Negative klen is documented since Perl 5.16, and 5.6 is no longer supported so no need to comment about it. Dagfinn Ilmari Mannsåker
1 parent f3f3aae commit 07341a2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pl/plperl/plperl.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3907,10 +3907,8 @@ hv_store_string(HV *hv, const char *key, SV *val)
39073907
hkey = pg_server_to_any(key, strlen(key), PG_UTF8);
39083908

39093909
/*
3910-
* This seems nowhere documented, but under Perl 5.8.0 and up, hv_store()
3911-
* recognizes a negative klen parameter as meaning a UTF-8 encoded key. It
3912-
* does not appear that hashes track UTF-8-ness of keys at all in Perl
3913-
* 5.6.
3910+
* hv_store() recognizes a negative klen parameter as meaning a UTF-8
3911+
* encoded key.
39143912
*/
39153913
hlen = -(int) strlen(hkey);
39163914
ret = hv_store(hv, hkey, hlen, val, 0);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy