Posted on October 7, 2006 at 12:29 pm
New in dbf-0.4.0:
- Support for dBase III style memo files
- Documentation in doc/readme.txt
- Fixed that field lengths were being read as signed integers, when they be should be unsigned
- Fixed skipping over deleted records
Thank you to everybody that submitted patches and test files. Keep ‘em coming.



You might want to check out the rubyist magazine issue 11 which has a dbf library which is refactored by Aoki. It is very good. He has before and after code. http://jp.rubyist.net/magazine/ issue 13. Also, there is another library that is just coming out that does dbf. Might want to touch base with this project owner at https://rubyforge.org/projects/rbase/
Here is the url translated by worldlingo
http://www.worldlingo.com/wl/services/SH0gfCf2o9dPiLK1Xn63E_tJUunKkhY_N/translation?wl_srclang=JA&wl_trglang=en&wl_rurl=http%3A%2F%2Fjp.rubyist.net%2Fmagazine%2F.%2F.%2F%3F0013&wl_url=http%3A%2F%2Fjp.rubyist.net%2Fmagazine%2F.%2F.%2F.%2F%3F0013-CodeReview
Hi,
There is a bug in DBF 0.4.0 with memo files. I could send it by mail but … I loose it :(’
(I already contacted you : http://www.infused.org/2006/08/01/ruby-dbf-library#comment-7584)
The bug occurs wih DBF files needing 0×1A character (at least DBase III format). In the file reader.rb, line 53 you do that :
return File.open(filename)
instead of that :
return File.open(filename,’rb’)
In many cases, memo methods returns a concat of more than one memo fields instead of just one. I don’t know if the bug occurs on *nix platforms, but under windows it does.
You can contact me by mail if you need more info.
Sam.
Hi Sam,
Thanks for pointing it out. The binary mode flag is only needed on Windows systems, and since I very rarely touch Windows these days I hadn’t noticed it. Sorry about that. I just uploaded dbf-0.4.1 to Rubyforge, so you should be able to upgrade shortly.
Thanks again,
Keith