Update PL/Perl's comment about hv_store().
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2016 18:45:45 +0000 (14:45 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2016 18:45:45 +0000 (14:45 -0400)
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

src/pl/plperl/plperl.c

index 1114b594165564767cf3416e76f198608de3a8aa..f60c227dda21f6488a374391f9d7478cffafdb83 100644 (file)
@@ -3907,10 +3907,8 @@ hv_store_string(HV *hv, const char *key, SV *val)
    hkey = pg_server_to_any(key, strlen(key), PG_UTF8);
 
    /*
-    * This seems nowhere documented, but under Perl 5.8.0 and up, hv_store()
-    * recognizes a negative klen parameter as meaning a UTF-8 encoded key. It
-    * does not appear that hashes track UTF-8-ness of keys at all in Perl
-    * 5.6.
+    * hv_store() recognizes a negative klen parameter as meaning a UTF-8
+    * encoded key.
     */
    hlen = -(int) strlen(hkey);
    ret = hv_store(hv, hkey, hlen, val, 0);