Commit 3468a80c authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Fix dxerr awk scripts to output single quotes properly.

parent 15edb38a
......@@ -40,7 +40,10 @@ BEGIN {
i = 1
len = length(array[word]) + 1
while (i < len) {
printf "'%s',", substr(array[word],i,1)
if (substr(array[word],i,1) == "\'")
printf "'\\'',"
else
printf "'%s',", substr(array[word],i,1)
i++
}
if (word < NF )
......
......@@ -40,7 +40,10 @@ BEGIN {
i = 1
len = length(array[word]) + 1
while (i < len) {
printf "'%s',", substr(array[word],i,1)
if (substr(array[word],i,1) == "\'")
printf "'\\'',"
else
printf "'%s',", substr(array[word],i,1)
i++
}
if (word < NF )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment