|
From: massimiliano c. <ci...@gm...> - 2005-11-08 15:08:31
|
I use mingw-gcc 3.4.2 provided by DevCpp 4.9.9.2 beta 9. It seems that gcc (or only some components like libstdc++) is compiled using unix style EOL (LF) instead of win style (CR+LF). I have tested it with a simple program that read lines from a text file and print them out. http://mastupristi.altervista.org/test_ifstream.zip Here is the sample project. There are two text file: testunix.test and testwin.test (with different EOL style). If you try to execute the program you can see that it works properly only with testunix.test. Now the question is: "How can I make it works with windows style EOL?" please note that compiling with mingw-gcc 3.2.3, or under linux, the programs works well... thanks -- Massimiliano Cialdi ci...@gm... m.c...@ok... |