Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit07341a2

Browse files
committed
Update PL/Perl's comment about hv_store().
Negative klen is documented since Perl 5.16, and 5.6 is no longersupported so no need to comment about it.Dagfinn Ilmari Mannsåker
1 parentf3f3aae commit07341a2

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)

[8]ページ先頭

©2009-2025 Movatter.jp