summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 311fab21fd..91d7f1d1f9 100644
--- a/toke.c
+++ b/toke.c
@@ -2642,7 +2642,7 @@ S_get_and_check_backslash_N_name(pTHX_ const char* s, const char* const e)
STRLEN len;
const char *str;
const char* i = s;
- SV* res = newSVpvn(s, e - s);
+ SV* res = newSVpvn_flags(s, e - s, UTF ? SVf_UTF8 : 0);
HV * table;
SV **cvp;