"Jeroen T. Vermeulen" <[EMAIL PROTECTED]> writes: > This code completely ignores any other usage of the backslash in the > escaped string, generating no output for unknown escape sequences. Is > that the desired behaviour?
As Adam pointed out, the code does do the right thing for other backslash sequences; it just processes the character on the following loop iteration. I'll add a comment to explain this. I see another issue here, which is that for a zero-length input string we will do malloc(0) and realloc(foo, 0), neither of which are very portable. Will fix. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html