From: Nicholas Clark Date: Mon, 12 Oct 2009 17:32:12 +0000 (+0100) Subject: Replace "%s"/SvPVX(sv_name) with "%"SVf/SVfARG(sv_name), which is UTF-8 safe. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=deda7dd1144fd5a06d175fcc86754e7d960435b3;p=p5sagit%2Fp5-mst-13.2.git Replace "%s"/SvPVX(sv_name) with "%"SVf/SVfARG(sv_name), which is UTF-8 safe. --- diff --git a/regcomp.c b/regcomp.c index 8881f41..148c88a 100644 --- a/regcomp.c +++ b/regcomp.c @@ -6696,13 +6696,13 @@ S_reg_namedseq(pTHX_ RExC_state_t *pRExC_state, UV *valuep, I32 *flagp) sv_name = newSVpvn(name, endbrace - name); if (!table || !(PL_hints & HINT_LOCALIZE_HH)) { - vFAIL2("Constant(\\N{%s}) unknown: " + vFAIL2("Constant(\\N{%" SVf "}) unknown: " "(possibly a missing \"use charnames ...\")", - SvPVX(sv_name)); + SVfARG(sv_name)); } if (!cvp || !SvOK(*cvp)) { /* when $^H{charnames} = undef; */ - vFAIL2("Constant(\\N{%s}): " - "$^H{charnames} is not defined",SvPVX(sv_name)); + vFAIL2("Constant(\\N{%" SVf "}): " + "$^H{charnames} is not defined", SVfARG(sv_name)); } @@ -6741,8 +6741,8 @@ S_reg_namedseq(pTHX_ RExC_state_t *pRExC_state, UV *valuep, I32 *flagp) LEAVE ; if ( !sv_str || !SvOK(sv_str) ) { - vFAIL2("Constant(\\N{%s}): Call to &{$^H{charnames}} " - "did not return a defined value",SvPVX(sv_name)); + vFAIL2("Constant(\\N{%" SVf "}): Call to &{$^H{charnames}} " + "did not return a defined value", SVfARG(sv_name)); } if (hv_store_ent( RExC_charnames, sv_name, sv_str, 0)) cached = 1; @@ -6775,14 +6775,14 @@ S_reg_namedseq(pTHX_ RExC_state_t *pRExC_state, UV *valuep, I32 *flagp) } if (numlen