From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#43632: Raw bytes printed as latin-1 in echo area and *Messages* Date: Sat, 26 Sep 2020 16:22:10 +0200 Message-ID: <873634list.fsf@gnus.org> References: <9F5C058E-1A95-4820-A508-EA357EC18AB9@acm.org> <83mu1cr5fn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34615"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 43632@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 26 16:23:25 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMB6h-0008qH-M1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Sep 2020 16:23:23 +0200 Original-Received: from localhost ([::1]:55390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMB6g-0005rb-NH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Sep 2020 10:23:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMB6M-0005on-MA for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 10:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMB6M-0007iL-Cd for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 10:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kMB6M-0001IV-7H for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 10:23: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, 26 Sep 2020 14:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43632 X-GNU-PR-Package: emacs Original-Received: via spool by 43632-submit@debbugs.gnu.org id=B43632.16011301474928 (code B ref 43632); Sat, 26 Sep 2020 14:23:02 +0000 Original-Received: (at 43632) by debbugs.gnu.org; 26 Sep 2020 14:22:27 +0000 Original-Received: from localhost ([127.0.0.1]:47505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMB5m-0001HQ-NR for submit@debbugs.gnu.org; Sat, 26 Sep 2020 10:22:27 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:52592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMB5k-0001HC-5h for 43632@debbugs.gnu.org; Sat, 26 Sep 2020 10:22:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mXUYv3LwEelQvh+29DOl2SM2qg9Adt66I8nt3u0thxY=; b=T3erwbaXIJ4pRuJm1Fx01e1Jtk Azpj8ed+da+gqbvZuJeF+QjFBPeuNfbIUF9+f4Z4o+0pBpF6wcCPUEA2kYPDHXIJzYikoDGRo/vKT rfVcnaImJciUJH2ew39QMFFiWZjf0ES5ksW6FNHwBblSGopTRatQxLl3sd/tGrRq91Ek=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMB5Y-0008CT-1n; Sat, 26 Sep 2020 16:22:17 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEXt0K/Yu59EMTee emr///9e6fLcAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+QJGg4TH5XMR9MAAAF6SURBVDjLZdPRtcMg CAZgiAtIskCVBYLsv9v9Udtori/p8TuAoCWKlWmso/pNTM/qIAHq9G8pUQLc7/1UvpD/g7g6PkuV NICauvZq38WZOOCqAetC5g5eFTX4SWbpY5EKEPtPMj419xq14itPxFlrmWBrda4DToD2s7yhdlj6 mJDe0BawZT8y/ODeAtQ74EK2iFbtnBE7pNraBG3b1MU75PS6QgynpxKA0CYTeD9UzKCnYh6nXt/J APKmnN+QxwElb9WRo4wftgFm0coILS8oR+wwpx2O+nHHzmGsuZfP88rrjeocU5zwG7xVvfy+cFEb tAD9D2gjV7Prk1TrBhiemvCd3NtSHG2poDO+GXDLFzjG7TELw7DcOsT4BWDeRMzJ3a0/0AFHFTtd suO9I2IBFTkxqw55gbMgXSF2Orz+gCU3E8GR8XdCI6MNkQAXQDx1XFQZfw4ANjtwRDDamCBfQAkk 8TmQAejhmu9GhBbQB2iFqyxAC8RpX/AHkog8KWYv4K0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAt MDktMjZUMTQ6MTk6MzArMDA6MDC70HoFAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA5LTI2VDE0 OjE5OjMwKzAwOjAwyo3CuQAAAABJRU5ErkJggg== X-Now-Playing: Laura Jean's _Laura Jean_: "When I First Brought Him Home" In-Reply-To: <83mu1cr5fn.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 26 Sep 2020 17:14:20 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189032 Archived-At: Eli Zaretskii writes: > It is not an anomaly. If you want to see escapes, set > print-escape-nonascii non-nil. > > Also note that what you see is the result of 'eval' printing the > result, the real result (as returned by prin1) is a unibyte string: > > (multibyte-string-p (prin1 "\377")) => nil > > (Yes, this is very confusing.) Could we do something about this confusion? This came up because I just couldn't make sense of what I was seeing when trying to work with raw bytes -- it seemed to be that Emacs was auto-promoting unibyte strings (with bytes >127) to multibyte strings... until I started calling multibyte-string-p on everything instead. I'm guessing I'm not the only person confused by this stuff. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no