Fix dxerr awk scripts to output single quotes properly.

This commit is contained in:
Robert Reif 2005-09-23 10:08:57 +00:00 committed by Alexandre Julliard
parent 15edb38ab2
commit 3468a80cf5
2 changed files with 8 additions and 2 deletions

View File

@ -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 )

View File

@ -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 )