[Kmymoney] dos2unix: was: KMM misbehaves after trying to install qif

Jack ostroffjh at sbcglobal.net
Sat Aug 20 13:10:11 UTC 2011


On 2011.08.20 01:31, Thomas Baumgart wrote:
> > On Fri, 19 Aug 2011 07:02:34 -0700 (PDT) Jack  
> <ostroffjh at sbcglobal.net> wrote:

>>> ...but just as a test you could try "dos2linux < date.qif >  
>>> newdate.qif" to change the line endings and see if that copy will  
>>> import.
> 
> KMyMoney should be able to deal with this. It reads a byte stream and  
> simply treats both as line endings and at the same time skips empty  
> lines. So "something<CR><LF>" actually is read as two lines  
> "something<CR>" and "<LF>" where the second one is empty and skipped.
> 
> BTW: isn't it 'dos2unix date.qif' and it converts the stuff in the  
> same file?

Yes, that will also work.  Historically (at least from memory) I've  
generally run it the long way so I have both versions around to test,  
as when I need to do that, I'm working on a shared file that I need to  
use both on Windows and Linux.


More information about the KMyMoney mailing list