all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jeff Clough <jeff@chaosphere.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Checking if a file is binary (non-textual)
Date: Mon, 28 Sep 2009 16:50:26 +0000	[thread overview]
Message-ID: <20090928.165026.73378833.jeff@chaosphere.com> (raw)
In-Reply-To: <83ske7qdbc.fsf@gnu.org>

From: Eli Zaretskii <eliz@gnu.org>
Date: Mon, 28 Sep 2009 17:49:43 +0200

>> Date: Mon, 28 Sep 2009 14:34:44 +0000
>> From: Jeff Clough <jeff@chaosphere.com>
>> 
>> MS systems tried to solve this by having a bit in the filesystem entry
>> as a binary/text flag, but even that can't be trusted.
> 
> Which bit is that?  AFAIK, the text/binary distinction is entirely on
> the run-time library level, the filesystem and the low-level APIs to
> the filesystem do not distinguish between text and binary.  But I'll
> be glad to learn something new.

Oops!  This is what I get for not hacking this shit under Windows for
so long.  You are right.  As far as I can tell, this is a library
thing that simply translates certain bytes differently depending on
the mode you opened the file in.  I mis-remembered it as something at
the filesystem level.

I *knew* something was off because I remembered it couldn't be
trusted, and now I remember why.

Jeff



----------
Author of the Genesys System
A "free" universal role-playing game.
http://www.chaosphere.com/genesys/ 




      reply	other threads:[~2009-09-28 16:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090928.165026.73378833.jeff@chaosphere.com \
    --to=jeff@chaosphere.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.