discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for Text Content Inspector


From: Charles Philip Chan
Subject: Re: Patch for Text Content Inspector
Date: Wed, 23 Mar 2005 14:38:07 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2005-03-23 06:31:25 -0500 Enrico Sersale <enrico@dtedu.net> wrote:

Thank you. Applied.

Thanks, Enrico.

Regarding magic numbers: GWorkspace already uses a NSTask with the "file" command to show the file type when no contents viewer is available;

I have alway suspected that, since the output is identical to that of
"file".

but, in this case, I'd want to implement a simplier algorithm, directly in the inspector, to check only if a file can be considered a "text" file; any suggestion?

Maybe read a couple of lines and return true if it contains only ASCII
characters?

Charles


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using the GPG bundle for GNUMail

iD8DBQFCQcWf3epPyyKbwPYRAgVYAJ43edBgVCL+zkn5vuYbnH54i1ToEACgw0o5
kTkGm/9JGnOGCeP9WYPP6aA=
=khZ/
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]