PDA

View Full Version : UIC eol control



Max Yaffe
13th July 2007, 21:25
Sorry to bug you guys again so soon but...

I'm using Windows.

Is there any way to control the end of line characters on code evoked from UIC? I'm getting \0D\0D\0A instead of \0D\0A. It looks like \n is being translated as \r\n twice. Looking at the UIC source (thanks, TT) I see UIC is writing to a QTextStrearm which is opened using UIODevice::Text flag.

Notes in the QTextStream manual says \n it get translated to \r\n but I'm getting an extra \r!

Of course I could debug & recompile UIC but I was hoping for an easier way out.

Thanks,
Max

<< From the book of programmer's wisdom: "Code don't Lie" >>