libxml-Ruby ctrlA

Hello,

on my Server amd x86_64 ruby 1.8.4 and libXML 0.3.8.4 are installed. I
read in large xml-Files and process it (that means delete some
nodes/elements) and write them out. The output file contains sometimes
suddenly ctrl+A characters.

I tried it also with ruby 1.8.5 and libXML 0.3.8.2. and crossover it. It
is always the same.

Sometimes the ctrlA is in the middle of the element-tag and the rest is
deleted. It looks like this for example
normal:
text

with ctrlA
<attrib name="foo^A>text

For me it looks like an overflow.

Is this a known Bug? I can’t find anything.
Is a workaround for that available?

Thanks for help

Stefan Lauer wrote:

Hello,

on my Server amd x86_64 ruby 1.8.4 and libXML 0.3.8.4 are installed. I
read in large xml-Files and process it (that means delete some
nodes/elements) and write them out. The output file contains sometimes
suddenly ctrl+A characters.

I tried it also with ruby 1.8.5 and libXML 0.3.8.2. and crossover it. It
is always the same.

Sometimes the ctrlA is in the middle of the element-tag and the rest is
deleted. It looks like this for example
normal:
text

with ctrlA
<attrib name="foo^A>text

For me it looks like an overflow.

Is this a known Bug? I can’t find anything.
Is a workaround for that available?

Thanks for help

I found out the ctrlA comes in on the read in with
XML::Document.file(file)

If read in with File.new and write it out the ctrlA isn’t in the xml
file.