Skip to content

Commit

Permalink
Ensure frame element names are escaped correctly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mwh committed May 6, 2014
1 parent a0edb78 commit 5d53660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genc.grace
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5d53660

Please sign in to comment.