From 5d536608fae1b2107728bd5427dd84375e395365 Mon Sep 17 00:00:00 2001 From: Michael Homer Date: Tue, 6 May 2014 13:36:05 +1200 Subject: [PATCH] Ensure frame element names are escaped correctly When a top-level var or def had a non-ASCII name the slot name was saved incorrectly, as slot names were escaped using the internal _escape method rather than proper string escaping. Hexadecimal escape characters were mangled and would not work where required, and raised errors in some compilers. --- genc.grace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genc.grace b/genc.grace index 46e723d..a493970 100644 --- a/genc.grace +++ b/genc.grace @@ -96,7 +96,7 @@ method definebindings(l, slot') { snm := escapestring(n.name.value.value) } else { tnm := escapeident(n.name.value) - snm := escapestring(n.name.value) + snm := escapestring2(n.name.value) } if (!declaredvars.contains(tnm)) then { declaredvars.push(tnm)