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

On 2005-03-23 06:31:25 -0500 Enrico Sersale <[EMAIL PROTECTED]> 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-----



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to