Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-03

Warning regarding a source file containing non printed chars

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hello,

I'm trying to open source files with Lazarus, that some have non printed chars that result in the following warning: "File .... does not look like a text file. open anyway ?"

Is there away (other then ignore) to change this behaviour in Lazarus ?

Thanks,
Ido

Reply by email

Mattias Gaertner
to ik
Show quoted text 8 lines
Hello, I'm trying to open source files with Lazarus, that some have non printed chars that result in the following warning: "File .... does not look like a text file. open anyway ?" Is there away (other then ignore) to change this behaviour in Lazarus ?

No.
Just curious: What kind of source file contains 'non printed chars'?

Mattias

Reply by email

ik
to Mattias Gaertner
Mattias Gaertner wrote 14 lines
On Fri, 7 Mar 2008 09:50:14 +0200 ik wrote: > Hello, > > I'm trying to open source files with Lazarus, that some have non > printed chars that result in the following warning: > "File .... does not look like a text file. open anyway ?" > > Is there away (other then ignore) to change this behaviour in > Lazarus ? No. Just curious: What kind of source file contains 'non printed chars'?

libsvn headers .. they are not part of a string but rather different end of line as i can understand ...

Regardless of that, Unicode contain many non printed chars, like direction, sound (for screen readers etc) and more ...

Show quoted text 7 lines
Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Ido

Reply by email

ik
to ik

BTW, I noticed at the console that when I press on "ignore" there is the following verbose: TMainIDE.DoOpenEditorFile failed LoadCodeBuffer: /usr/include/subversion-1/mod_dav_svn.h

Ido

ik wrote 39 lines
On Fri, Mar 7, 2008 at 10:29 AM, Mattias Gaertner wrote: > On Fri, 7 Mar 2008 09:50:14 +0200 > ik wrote: > > > Hello, > > > > I'm trying to open source files with Lazarus, that some have non > > printed chars that result in the following warning: > > "File .... does not look like a text file. open anyway ?" > > > > Is there away (other then ignore) to change this behaviour in > > Lazarus ? > > No. > Just curious: What kind of source file contains 'non printed chars'? libsvn headers .. they are not part of a string but rather different end of line as i can understand ... Regardless of that, Unicode contain many non printed chars, like direction, sound (for screen readers etc) and more ... > > Mattias > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > Ido -- http://ik.homelinux.org/

Reply by email

Mattias Gaertner
to ik: On Fri, Mar 7, 2008 at 10:29 AM, Mattias Gaertner libsvn headers .. they are not part of…
Show quoted text 23 lines
On Fri, Mar 7, 2008 at 10:29 AM, Mattias Gaertner wrote: > On Fri, 7 Mar 2008 09:50:14 +0200 > ik wrote: > > > Hello, > > > > I'm trying to open source files with Lazarus, that some have non > > printed chars that result in the following warning: > > "File .... does not look like a text file. open anyway ?" > > > > Is there away (other then ignore) to change this behaviour in > > Lazarus ? > > No. > Just curious: What kind of source file contains 'non printed > chars'? libsvn headers .. they are not part of a string but rather different end of line as i can understand ... Regardless of that, Unicode contain many non printed chars, like direction, sound (for screen readers etc) and more ...

The 'file is text' check searches for #0..#8,#11,#12,#14..#31. There are no special Unicode characters in #0..#31.

I checked libsvn-dev and you are right - it contains the special char #12 - Form Feed.
I checked several viewers and editors and none like them. But they don't warn neither. Apparently they ignore this special printer character.
I changed FileIstText to allow 'Form Feed'.

Mattias

Reply by email