Message-Id: <
199808072142.OAA14920@wall.org>
Subject: [PATCH 5.005_50]: uc("") and lc("") under utf8 fails
p4raw-id: //depot/perl@1769
U8 *send;
s = SvPV(sv,len);
- if (!len)
+ if (!len) {
+ sv_setpvn(TARG, "", 0);
+ SETs(TARG);
RETURN;
+ }
(void)SvUPGRADE(TARG, SVt_PV);
SvGROW(TARG, (len * 2) + 1);
U8 *send;
s = SvPV(sv,len);
- if (!len)
+ if (!len) {
+ sv_setpvn(TARG, "", 0);
+ SETs(TARG);
RETURN;
+ }
(void)SvUPGRADE(TARG, SVt_PV);
SvGROW(TARG, (len * 2) + 1);