summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-05-04 20:42:48 -0600
committerTony Cook <tony@develop-help.com>2013-08-12 15:13:01 +1000
commit93e088e883c48d3aa622b15ae335940abb05a48f (patch)
tree5baeae51c9dc63e5966f9baaba0dff355f48ee15 /pp.c
parentac993614a7619e3e09c31ed0d7721bede551376a (diff)
downloadperl-93e088e883c48d3aa622b15ae335940abb05a48f.tar.gz
XXX Patch for discussion: [perl #117355] [lu]cfirst don't respect 'use bytes'
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index e47500f1d4..b61192da2b 100644
--- a/pp.c
+++ b/pp.c
@@ -3664,7 +3664,7 @@ PP(pp_ucfirst)
/* In a "use bytes" we don't treat the source as UTF-8, but, still want
* the destination to retain that flag */
- if (SvUTF8(source))
+ if (SvUTF8(source) && ! IN_BYTES)
SvUTF8_on(dest);
if (!inplace) { /* Finish the rest of the string, unchanged */