Re: XML_IO_EBADF with xmlDocDump

Danny Holstein via xml <[email protected]> Wed, 27 Jan 2021 16:39:40 -0600
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <CAN1dD=Hg4mDBQjiqPm9pV--7nLKM0cofA1E6b5_Fa17QDNDaRQ@mail.gmail.com>
--===============3369324710372689682==
Content-Type: multipart/alternative; boundary="000000000000eee8c405b9e972b5"

--000000000000eee8c405b9e972b5
Content-Type: text/plain; charset="UTF-8"

Thanks, but nope, that's not the case. I'm able to use FILE* fp with
fputs() without issue.

On Wed, Jan 27, 2021, 4:23 PM Liam R E Quin <[email protected]> wrote:

> On Wed, 2021-01-27 at 13:37 -0600, Danny Holstein via xml wrote:
> >
> > 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.
>
> Sounds like you are trying to overwrite a file that already exists - is
> it possible another processes already has it open? (or that your own
> program still has it open)? Windows doesn't like that.
>
> Liam
>
>
> --
> Liam Quin, https://www.delightfulcomputing.com/
> Available for XML/Document/Information Architecture/XSLT/
> XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
> Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org
>
>

--000000000000eee8c405b9e972b5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>Thanks, but nope, that&#39;s not the case. I&#39;m a=
ble to use FILE* fp with fputs() without issue.<br><br><div class=3D"gmail_=
quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jan 27, 2021, 4:23 PM =
Liam R E Quin &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&=
gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2021-01-27 at 13=
:37 -0600, Danny Holstein via xml wrote:<br>
&gt; <br>
&gt; With modes &quot;w+&quot;=C2=A0 and &quot;w+b&quot;, I get XML_IO_FLUS=
H.=C2=A0 Adding &quot;c&quot; to the<br>
&gt; modes<br>
&gt; doesn&#39;t change anything, &quot;x&quot; causes the fopen() to fail =
with a &quot;*file<br>
&gt; exists*&quot; error.<br>
<br>
Sounds like you are trying to overwrite a file that already exists - is<br>
it possible another processes already has it open? (or that your own<br>
program still has it open)? Windows doesn&#39;t like that.<br>
<br>
Liam<br>
<br>
<br>
-- <br>
Liam Quin,=C2=A0<a href=3D"https://www.delightfulcomputing.com/" rel=3D"nor=
eferrer noreferrer" target=3D"_blank">https://www.delightfulcomputing.com/<=
/a><br>
Available for XML/Document/Information Architecture/XSLT/<br>
XSL/XQuery/Web/Text Processing/A11Y training, work &amp; consulting.<br>
Barefoot Web-slave, antique illustrations: =C2=A0<a href=3D"http://www.from=
oldbooks.org" rel=3D"noreferrer noreferrer" target=3D"_blank">http://www.fr=
omoldbooks.org</a><br>
<br>
</blockquote></div></div></div>

--000000000000eee8c405b9e972b5--

--===============3369324710372689682==
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

--===============3369324710372689682==--