From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#26796: 26.0.50; (2 characters) is usually wrong Date: Sat, 06 May 2017 12:45:45 +0200 Message-ID: References: <837f1uff7i.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494067573 20770 195.159.176.226 (6 May 2017 10:46:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 May 2017 10:46:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26796@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 06 12:46:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6xE0-0005KJ-BC for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 May 2017 12:46:08 +0200 Original-Received: from localhost ([::1]:50818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6xE5-0003lJ-9u for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 May 2017 06:46:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6xDx-0003kf-Hh for bug-gnu-emacs@gnu.org; Sat, 06 May 2017 06:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6xDu-000595-EL for bug-gnu-emacs@gnu.org; Sat, 06 May 2017 06:46:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6xDu-000591-Ad for bug-gnu-emacs@gnu.org; Sat, 06 May 2017 06:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d6xDu-0001pM-4h for bug-gnu-emacs@gnu.org; Sat, 06 May 2017 06:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 May 2017 10:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26796-submit@debbugs.gnu.org id=B26796.14940675506994 (code B ref 26796); Sat, 06 May 2017 10:46:02 +0000 Original-Received: (at 26796) by debbugs.gnu.org; 6 May 2017 10:45:50 +0000 Original-Received: from localhost ([127.0.0.1]:57212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6xDi-0001ok-1C for submit@debbugs.gnu.org; Sat, 06 May 2017 06:45:50 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:51402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6xDg-0001od-HG for 26796@debbugs.gnu.org; Sat, 06 May 2017 06:45:48 -0400 Original-Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1d6xDd-0006Hj-Ty; Sat, 06 May 2017 12:45:47 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEX/gQn/bQn+AQX+Iwj/ YgX+Ggf9Cgb/Pwf/LQfyAAHeAAH8BQT/AADpAAH+EQT/VgfqefeQAAABMElEQVQ4jWMwC01SgoFD cJaSGoPNGeyAIQmXhA4uCRziZxhySNYBpU+fObMHzMhBkjCv2VFnb1H9uf2ZaUxdX73wUXOIxHE5 G3GH8x94WhhjhM8wFtcXPhD5A5Y40tPDXnKkhKdd/o3/GXfX8kR7Hx+wxGGOmvLyI+Y8FR+f1nP7 MBcLHOmwgdix9cyxnHNv3rzed+aMzZvXb96ceU2Mc0HgzzFkiT1w5rFC5KBGkjjTzxKDJDEHwW73 R5ZAMrbPHIflOFyVU33mTNuZE2/QJI5yMAeer5D5YYCu4yi76IHjxX++26NLnPtz5si59zLvPmLo eHMmOcTFR1CQsKt0CDqXaIk5Q0tChwgdZ3FJnFqFLHEHwZ6FS+LkGhwSp1YiSyCpOrUGl8QqHBIo gHoSqQAhGlRFwh6Z4gAAAABJRU5ErkJggg== In-Reply-To: <837f1uff7i.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 May 2017 13:32:33 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132300 Archived-At: Eli Zaretskii 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.j= pg") (write-region (point-min) (point-max) "/tmp/a.jpg")) Wrote =E2=80=98/tmp/a.jpg=E2=80=99 (889 characters) There are no characters in a JPEG file; it's all bytes. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no