Skip to content

Commit

Permalink
XXX Patch for discussion: [perl #117355] [lu]cfirst don't respect 'us…
Browse files Browse the repository at this point in the history
…e bytes'
  • Loading branch information
Karl Williamson authored and tonycoz committed Aug 12, 2013
1 parent ac99361 commit 93e088e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pp.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 93e088e

Please sign in to comment.