I cannot reproduce the problem either. Please check the latest CVS. I committed yesterday a big patch to the file IO system. Although the logic for EOF is practically unchanged and an old version works fine as well for me.
uname -a
Linux host 2.6.24-25-generic #1 SMP Tue Oct 20 07:31:10 UTC 2009 i686 GNU/Linux
Is your c++ stream library up to date?.