Re: [Gambas-user] Non-linux line ending files are seen as binary by the IDE

2015-02-03 Thread adamn...@gmail.com
On Wed, 04 Feb 2015 03:27:28 +0100 Benoît Minisini gam...@users.sourceforge.net wrote: Le 02/02/2015 08:49, adamn...@gmail.com a écrit : If I have a data file in the project which has windows style line endings, i.e. CRLF then the IDE thinks it's a binary file. Don't really know if this

Re: [Gambas-user] Non-linux line ending files are seen as binary by the IDE

2015-02-03 Thread Benoît Minisini
Le 02/02/2015 08:49, adamn...@gmail.com a écrit : If I have a data file in the project which has windows style line endings, i.e. CRLF then the IDE thinks it's a binary file. Don't really know if this is a bug or just an anomaly or what is the expected behaviour? e.g. attached. In the

Re: [Gambas-user] Non-linux line ending files are seen as binary by the IDE

2015-02-03 Thread Rolf-Werner Eilert
I observed that Win7 tends to add some kind of flag byte(s) at the beginning of the file when it's UTF-8 (under VB). Otherwise, I have solved the problem in one of my programs that must write UTF-8 files for a Win (VB) and Linux (Gambas) client, by adding a CR+LF at the end of each line when

Re: [Gambas-user] Non-linux line ending files are seen as binary by the IDE

2015-02-03 Thread Benoît Minisini
Le 03/02/2015 12:45, Rolf-Werner Eilert a écrit : I observed that Win7 tends to add some kind of flag byte(s) at the beginning of the file when it's UTF-8 (under VB). Yes, this is one of the (many) design failures of windows. Otherwise, I have solved the problem in one of my programs that

Re: [Gambas-user] Non-linux line ending files are seen as binary by the IDE

2015-02-03 Thread Rolf-Werner Eilert
Am 03.02.2015 13:12, schrieb Benoît Minisini: Le 03/02/2015 12:45, Rolf-Werner Eilert a écrit : I observed that Win7 tends to add some kind of flag byte(s) at the beginning of the file when it's UTF-8 (under VB). Yes, this is one of the (many) design failures of windows. Otherwise, I

Re: [Gambas-user] Non-linux line ending files are seen as binary by the IDE

2015-02-02 Thread Mike Crean
He Jussi, would one not expect to see CR, LF in a binaryfile and would expect to see EOF. Regards Mike On Tuesday, 3 February 2015, 2:11, Jussi Lahtinen jussi.lahti...@gmail.com wrote: It would certainly be good thing if IDE would have converter for these cases. Meanwhile it should

Re: [Gambas-user] Non-linux line ending files are seen as binary by the IDE

2015-02-02 Thread Jussi Lahtinen
It would certainly be good thing if IDE would have converter for these cases. Meanwhile it should be pretty easy to write script to convert the line endings. However, it's strange that I did not have this problem with source files... maybe this is bug in how Gambas detect binary files. Jussi On

Re: [Gambas-user] Non-linux line ending files are seen as binary by the IDE

2015-02-02 Thread Jussi Lahtinen
Of course binary file can have CR and LF. But if they are only control characters in the file, then it should not be considered as binary file. I don't understand what is your point about EOF. Jussi On Tue, Feb 3, 2015 at 4:00 AM, Mike Crean mike.cr...@y7mail.com wrote: He Jussi, would one