Re: [fpc-devel]const sLineBreak

2004-09-22 Thread Darek Mazur
Uz.ytkownik Jonas Maebe napisa?: On 22 sep 2004, at 16:07, Darek Mazur wrote: I can't now give an exact program, but this kind of function don't make any disorder or other bad things. The main problem is that people may expect it to return the line-endings of the text file, instead of just what

Re: [fpc-devel]const sLineBreak

2004-09-22 Thread Jonas Maebe
On 22 sep 2004, at 16:07, Darek Mazur wrote: I can't now give an exact program, but this kind of function don't make any disorder or other bad things. The main problem is that people may expect it to return the line-endings of the text file, instead of just what you set it to be. As such, it can

Re: [fpc-devel]const sLineBreak

2004-09-22 Thread Darek Mazur
Użytkownik Tomas Hajny napisał: On Wed, 22 Sep 2004 13:32:27 +0200, Darek Mazur wrote Użytkownik Tomas Hajny napisał: On Wed, 22 Sep 2004 11:51:06 +0200, Darek Mazur wrote Użytkownik Tomas Hajny napisał: From: Darek Mazur <[EMAIL PROTECTED]> Date sent: Thu, 16 Sep 2

Re: [fpc-devel]const sLineBreak

2004-09-22 Thread Tomas Hajny
On Wed, 22 Sep 2004 13:32:27 +0200, Darek Mazur wrote > Użytkownik Tomas Hajny napisał: > > On Wed, 22 Sep 2004 11:51:06 +0200, Darek Mazur wrote > > > >>Użytkownik Tomas Hajny napisał: > >> > >>>From: Darek Mazur <[EMAIL PROTECTED]> > >>>Date sent: Thu, 16 Sep 2004 16:52:54 +

Re: [fpc-devel]const sLineBreak

2004-09-22 Thread Jonas Maebe
On 22 sep 2004, at 13:32, Darek Mazur wrote: Is SetTextLineEnding applied to readln (I can test it) readln has always supported all possible line break formats (Dos/Windows, Unix and Mac). Jonas ___ fpc-devel maillist - [EMAIL PROTECTED] http://lists

Re: [fpc-devel]const sLineBreak

2004-09-22 Thread Darek Mazur
Użytkownik Tomas Hajny napisał: On Wed, 22 Sep 2004 11:51:06 +0200, Darek Mazur wrote Użytkownik Tomas Hajny napisał: From: Darek Mazur <[EMAIL PROTECTED]> Date sent: Thu, 16 Sep 2004 16:52:54 +0200 . . A new procedure SetTextLineEnding (var T: text; S: string) was

Re: [fpc-devel]const sLineBreak

2004-09-22 Thread Tomas Hajny
On Wed, 22 Sep 2004 11:51:06 +0200, Darek Mazur wrote > Użytkownik Tomas Hajny napisał: > > From: Darek Mazur <[EMAIL PROTECTED]> > > Date sent: Thu, 16 Sep 2004 16:52:54 +0200 . . > > A new procedure SetTextLineEnding (var T: text; S: string) was added > > to System unit

Re: [fpc-devel]const sLineBreak

2004-09-22 Thread Vincent Snijders
Darek Mazur wrote: Użytkownik Tomas Hajny napisał: A new procedure SetTextLineEnding (var T: text; S: string) was added to System unit in CVS. This allows you to change line ending for individual text files. After call to Assign the line ending for that file is set to the default line ending on

Re: [fpc-devel]const sLineBreak

2004-09-22 Thread Darek Mazur
Użytkownik Tomas Hajny napisał: From: Darek Mazur <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [fpc-devel]const sLineBreak Send reply to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <mailto:[

Re: [fpc-devel]const sLineBreak

2004-09-21 Thread Tomas Hajny
From: Darek Mazur <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [fpc-devel]const sLineBreak Send reply to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> Date sent:

Re: [fpc-devel]const sLineBreak

2004-09-16 Thread Darek Mazur
Użytkownik Tomas Hajny napisał: On Wed, 15 Sep 2004 23:59:57 +0200, Darek Mazur wrote Użytkownik Michael Van Canneyt napisał: I think that if your code expects the same linefeed on both platforms, you should rethink your strategy. You should always use the 'local' default. Opening a unix LF file in

Re: [fpc-devel]const sLineBreak

2004-09-16 Thread Tomas Hajny
On Wed, 15 Sep 2004 23:59:57 +0200, Darek Mazur wrote > Użytkownik Michael Van Canneyt napisał: > > > > I think that if your code expects the same linefeed on both platforms, > > you should rethink your strategy. You should always use the 'local' > > default. Opening a unix LF file in Windows give

Re: [fpc-devel]const sLineBreak

2004-09-15 Thread Darek Mazur
Użytkownik Michael Van Canneyt napisał: I think that if your code expects the same linefeed on both platforms, you should rethink your strategy. You should always use the 'local' default. Opening a unix LF file in Windows gives strange results, and vice versa too... I dont agree: I don't know on

Re: [fpc-devel]const sLineBreak

2004-09-15 Thread Michael Van Canneyt
On Wed, 15 Sep 2004, Darek M wrote: > > > > On Tue, 14 Sep 2004, Darek Mazur wrote: > > > > > HI > > > > > > I need that WRITELN make the same end of line in Linux and Win32, > > > > > > I found sLineBreak, but for some OS it is var, for some const, > > > > > > There is second identifier LineEnd

Re: [fpc-devel]const sLineBreak

2004-09-15 Thread Darek M
> > On Tue, 14 Sep 2004, Darek Mazur wrote: > > > HI > > > > I need that WRITELN make the same end of line in Linux and Win32, > > > > I found sLineBreak, but for some OS it is var, for some const, > > > > There is second identifier LineEnding (mostly const) > > > > I think, tha one should be const

Re: [fpc-devel]const sLineBreak

2004-09-15 Thread Michael Van Canneyt
On Tue, 14 Sep 2004, Darek Mazur wrote: > HI > > I need that WRITELN make the same end of line in Linux and Win32, > > I found sLineBreak, but for some OS it is var, for some const, > > There is second identifier LineEnding (mostly const) > > I think, tha one should be const, and second var, and