Re: [BUGS] BUG #3735: Can't create xml-stylesheet processing instruction

2007-11-11 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Where do you get the information that the second parameter of > xmlGetUTF8Char is used on input? >From reading the manual, eg here: http://xmlsoft.org/html/libxml-xmlstring.html#xmlGetUTF8Char regards, tom lane -

Re: [BUGS] BUG #3735: Can't create xml-stylesheet processing instruction

2007-11-11 Thread Peter Eisentraut
Ben Leslie wrote: > utf8len = 4; /* FIXME: How do we know how many characters it could > be?*/ utf8char = xmlGetUTF8Char(&p[5], &utf8len); Where do you get the information that the second parameter of xmlGetUTF8Char is used on input? -- Peter Eisentraut http://developer.postgresql.org/~petere/

Re: [BUGS] BUG #3735: Can't create xml-stylesheet processing instruction

2007-11-10 Thread Tom Lane
Ben Leslie <[EMAIL PROTECTED]> writes: > The reason for the bug is the new part of code in parse_xml_decl(). > Specifically, utf8len is not initialised causing the problem. Yeah --- this also explains the regression test failures seen on some but not all buildfarm machines. Will fix.

Re: [BUGS] BUG #3735: Can't create xml-stylesheet processing instruction

2007-11-10 Thread Ben Leslie
On Fri Nov 09, 2007 at 16:53:08 +0100, Peter Eisentraut wrote: >Am Freitag, 9. November 2007 schrieb Ben Leslie: >> # select xmlpi(name "xml-stylesheet"); >> ERROR: invalid XML processing instruction >> DETAIL: XML processing instruction target name cannot start with "xml". > >Apparently I read t

Re: [BUGS] BUG #3735: Can't create xml-stylesheet processing instruction

2007-11-09 Thread Peter Eisentraut
Am Freitag, 9. November 2007 schrieb Ben Leslie: > # select xmlpi(name "xml-stylesheet"); > ERROR: invalid XML processing instruction > DETAIL: XML processing instruction target name cannot start with "xml". Apparently I read the SQL spec a bit to strictly here. I've installed a fix into CVS.

[BUGS] BUG #3735: Can't create xml-stylesheet processing instruction

2007-11-09 Thread Ben Leslie
The following bug has been logged online: Bug reference: 3735 Logged by: Ben Leslie Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3 beta 2 Operating system: Mac OS X Description:Can't create xml-stylesheet processing instruction Details: # select xmlpi(name