m210.dump() does not dump everything if used other than stdout as a destination

Bug #888272 reported by a
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libm210
Status tracked in Trunk
Trunk
Fix Released
Medium
a
m210
Status tracked in Trunk
Trunk
Fix Released
Medium
a

Bug Description

I am not quite sure what the problem is, and I was wondering whether there is a way to debug it. Initially, I tried to save notes to RAM from python, but as far as I see, this might not be possible, because the library function m210_dev_download_notes requires a file number. I am sure this could be fooled somehow, but perhaps it is not so important. However, when I tried to save notes to disc from a python session, I realised that not everything is read from the device. If I do this on the command line

m210 dump > fujitsu.pegvf

then the file size is 233802, and all data are transferred. However, if I do this from a python session

>>> import m210
>>> a = open('test.pegvf', 'wb')
>>> m210.dump(a)
>>> a.close()

then the file size is only 233472, and a chunk from the last page seems to be missing. Is there something that I should do in order to get the whole content of the memory? As a temporary measure, I could issue a system call, but I just don't see why that is different. After all, the command line and the python module calls the very same library.
Thanks,
Zoltán

a (tuomasjjrasanen)
Changed in m210:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Tuomas Jorma Juhani Räsänen (tuomasjjrasanen)
milestone: none → 0.6
a (tuomasjjrasanen)
Changed in libm210:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Tuomas Jorma Juhani Räsänen (tuomasjjrasanen)
a (tuomasjjrasanen)
Changed in libm210:
status: In Progress → Fix Committed
a (tuomasjjrasanen)
Changed in libm210:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.