XML_IO_EBADF with xmlDocDump
Danny Holstein via xml <[email protected]> Wed, 27 Jan 2021 13:37:07 -0600
| Newsgroups | gmane.comp.gnome.lib.xml.general |
|---|---|
| Message-ID | <CAN1dD=GMoiO0H8VnGNx=+6+t5im7bwx-C=4T_jJU3CXgR7vPog@mail.gmail.com> |
--===============5764731597838630632== Content-Type: multipart/alternative; boundary="00000000000027440105b9e6e61f" --00000000000027440105b9e6e61f Content-Type: text/plain; charset="UTF-8" I'm trying to use int xmlDocDump (FILE * f, xmlDocPtr cur) and consistently receive a XML_IO_EBADF (*bad file descriptor*) fault. I'm using LibXML2 Version 2.7.8 on Windows 10. BTW: I successfully fopen() with modes = "w", "wb" but receive XML_IO_EBADF. With modes "w+" and "w+b", I get XML_IO_FLUSH. Adding "c" to the modes doesn't change anything, "x" causes the fopen() to fail with a "*file exists*" error. --00000000000027440105b9e6e61f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><font color=3D"#0c343d">I'm trying to use=C2=A0</font>= <blockquote style=3D"margin:0 0 0 40px;border:none;padding:0px"><div><font = color=3D"#0c343d"><font face=3D"monospace" style=3D"background-color:rgb(25= 5,242,204)">int xmlDocDump (FILE * f, xmlDocPtr cur)</font></font></div><= /blockquote><div><font color=3D"#0c343d">and consistently=C2=A0receive a=C2= =A0<font face=3D"monospace" style=3D"background-color:rgb(255,242,204)">XML= _IO_EBADF</font><font face=3D"monospace" style=3D"background-color:rgb(255,= 255,255)">=C2=A0</font>(<i>bad file descriptor</i>)=C2=A0 fault.=C2=A0 I= 9;m using=C2=A0LibXML2 Version 2.7.8 on Windows 10.</font></div><div><font = color=3D"#0c343d"><br></font></div><div><font color=3D"#0c343d">BTW: I succ= essfully fopen() with modes =3D "w", "wb" but receive= =C2=A0<font face=3D"monospace">XML_IO_EBADF</font></font>.=C2=A0 With modes= =C2=A0<span style=3D"color:rgb(12,52,61)">"w+"=C2=A0 and "w+= b", I get=C2=A0</span><font color=3D"#0c343d"><font face=3D"monospace"= >XML_IO_FLUSH</font>.=C2=A0 Adding "c" to the modes doesn't c= hange anything, "x" causes the fopen() to fail with a "<i>fi= le exists</i>" error.</font></div></div> --00000000000027440105b9e6e61f-- --===============5764731597838630632== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] https://mail.gnome.org/mailman/listinfo/xml --===============5764731597838630632==--