all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Checking if a file is binary (non-textual)
@ 2009-09-28 13:29 Nordlöw
  2009-09-28 14:34 ` Jeff Clough
  0 siblings, 1 reply; 4+ messages in thread
From: Nordlöw @ 2009-09-28 13:29 UTC (permalink / raw)
  To: help-gnu-emacs

What characters (bytes) should *not* be present in a text-file that
may contain variable-length unicode characters.
What does the unicode standard say about this?

The reason for asking:
I am working on a tool that unifies grep, tags-query-replace, occur,
etc.
And I really would like this tool to have some clever default
behaviour for determining how to present the search (grep) hit-context
for different file-types:
- textual files: show whole line (as grep and occur does)
- binary files: either no context just notify match (like grep) or
maybe all [a-zA-Z0-9_]* directly before or after hit
- ...

/Nordlöw


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-28 16:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 13:29 Checking if a file is binary (non-textual) Nordlöw
2009-09-28 14:34 ` Jeff Clough
2009-09-28 15:49   ` Eli Zaretskii
2009-09-28 16:50     ` Jeff Clough

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.