
13 Sep
2006
13 Sep
'06
12:53 p.m.
Arndt Jonasson writes:
- A third problem with patterns from display hints is that a period
(.) is not always escaped with a backslash (.) (for example with the display hint "1x."). My suggested fix is to use a two-character char array for 'separator', and insert the '' already when the separator is set from the hint. Then no tests are needed further down, but the %c changed to %s.
I see that my suggestion made it into the repository. Unfortunately, my suggestion had a bug: the array needs to be three characters long, since sometimes an additional backslash (to quote a period) is stored there.
So (in dump-xsd.c), char separator[3]; and dh->separator[0] = '\0'; dh->separator[1] = '\0'; dh->separator[2] = '\0';