all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 26796@debbugs.gnu.org
Subject: bug#26796: 26.0.50; (2 characters) is usually wrong
Date: Sat, 06 May 2017 12:45:45 +0200	[thread overview]
Message-ID: <m3o9v6z2jq.fsf@stories> (raw)
In-Reply-To: <837f1uff7i.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 May 2017 13:32:33 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> Perhaps saying "(2 bytes)" will be more helpful?
>
> I really doubt that: Emacs users tend to think in terms of characters
> than in terms of bytes.

But this is questionable, at least:

(with-temp-buffer (set-buffer-multibyte nil) (insert-file-contents "~/rms.jpg") (write-region (point-min) (point-max) "/tmp/a.jpg"))
Wrote ‘/tmp/a.jpg’ (889 characters)

There are no characters in a JPEG file; it's all bytes.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2017-05-06 10:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-06  9:49 bug#26796: 26.0.50; (2 characters) is usually wrong Lars Ingebrigtsen
2017-05-06 10:32 ` Eli Zaretskii
2017-05-06 10:38   ` Lars Ingebrigtsen
2017-05-06 10:45   ` Lars Ingebrigtsen [this message]
2017-05-06 11:06     ` Eli Zaretskii
2017-05-06 12:16 ` npostavs
2017-05-06 14:19   ` Eli Zaretskii
2017-05-06 17:21     ` npostavs
2017-05-08  5:02     ` Mark Oteiza
2017-05-08 14:33       ` Eli Zaretskii
2017-05-08 15:59         ` Glenn Morris
2017-05-08 16:07           ` Eli Zaretskii
2017-05-09  0:41             ` Mark Oteiza
2017-05-09  4:39           ` npostavs
2017-05-07  1:11 ` Paul Eggert

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=m3o9v6z2jq.fsf@stories \
    --to=larsi@gnus.org \
    --cc=26796@debbugs.gnu.org \
    --cc=eliz@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.