From unknown Mon Jun 23 07:53:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7279: 24.0.50; print-escape-multibyte not honored Resent-From: Helmut Eller Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Oct 2010 11:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7279@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.128800653623762 (code B ref -1); Mon, 25 Oct 2010 11:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Oct 2010 11:35:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PALKx-0006BD-Bh for submit@debbugs.gnu.org; Mon, 25 Oct 2010 07:35:35 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PALKv-0006B6-J9 for submit@debbugs.gnu.org; Mon, 25 Oct 2010 07:35:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PALOo-0002Fn-Gc for submit@debbugs.gnu.org; Mon, 25 Oct 2010 07:39:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:45002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PALOo-0002Fj-DC for submit@debbugs.gnu.org; Mon, 25 Oct 2010 07:39:34 -0400 Received: from [140.186.70.92] (port=39698 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PALOm-00024X-ON for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2010 07:39:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PALOl-0002FB-OM for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2010 07:39:32 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:35968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PALOl-0002F0-Ct for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2010 07:39:31 -0400 Received: by bwz16 with SMTP id 16so3042527bwz.0 for ; Mon, 25 Oct 2010 04:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type; bh=Km2SEUGrfavLJcaw43jvq8Hp98jTL7MtroXTqFjblNQ=; b=aaTI+7s4cOfBAvlBKW8QTndbqGFx1yXp3a69bBnsPjY0VqbaEiq4mEosvDdudI8o12 ZytpYX+RGF+VaauvyMJOwPB4+CKCcfX2Mld07R+9sTTeVji8mPKfBTZbU9LRXOi9V9QO nKmDmVl1D1+TdIrYOCeVpxav3O7f5s5ES01OA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; b=LGA3XD3RmYInFQTHHt9zZ/uumqu1itf0434gfK5a4fQuxcN3Vj8exSm/VwUnpJ8N0o OyWtiJegntmuGOAdvNG5YkXGFvw6CMbPIvNExs50mAb3slMwIlOILUvQDjsxlgov5J18 7bNwZgH1chhs3mBoBq/xTzm3HnpYWomOJcRbQ= Received: by 10.204.80.97 with SMTP id s33mr4832000bkk.182.1288006769513; Mon, 25 Oct 2010 04:39:29 -0700 (PDT) Received: from ix ([212.46.169.140]) by mx.google.com with ESMTPS id y19sm4738900bkw.6.2010.10.25.04.39.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 Oct 2010 04:39:26 -0700 (PDT) Received: from helmut by ix with local (Exim 4.69) (envelope-from ) id 1PALOd-0001Cg-AM for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2010 13:39:23 +0200 From: Helmut Eller Date: Mon, 25 Oct 2010 13:39:23 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.4 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) This code: (with-temp-file "/tmp/x.x" (let ((print-escape-multibyte nil)) (prin1 (string ?\x03bb) (current-buffer)))) writes "\x03bb" to the file, i.e. it seems to ignore the value of print-escape-multibyte. In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2010-10-23 on ix Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--with-gif=no'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: nil From unknown Mon Jun 23 07:53:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7279: 24.0.50; print-escape-multibyte not honored Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Oct 2010 17:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Helmut Eller Cc: 7279@debbugs.gnu.org Received: via spool by 7279-submit@debbugs.gnu.org id=B7279.12880294883968 (code B ref 7279); Mon, 25 Oct 2010 17:59:02 +0000 Received: (at 7279) by debbugs.gnu.org; 25 Oct 2010 17:58:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PARJ9-00011x-TK for submit@debbugs.gnu.org; Mon, 25 Oct 2010 13:58:08 -0400 Received: from mail-out.m-online.net ([212.18.0.9]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PARJ8-00011b-1C for 7279@debbugs.gnu.org; Mon, 25 Oct 2010 13:58:06 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 4432A1C15AF3; Mon, 25 Oct 2010 20:02:07 +0200 (CEST) Received: from igel.home (ppp-88-217-114-90.dynamic.mnet-online.de [88.217.114.90]) by mail.mnet-online.de (Postfix) with ESMTP id 2D4291C0028B; Mon, 25 Oct 2010 20:02:07 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id BA85FCA2A0; Mon, 25 Oct 2010 20:02:06 +0200 (CEST) From: Andreas Schwab References: X-Yow: If elected, Zippy pledges to each and every American a 55-year-old houseboy... Date: Mon, 25 Oct 2010 20:02:06 +0200 In-Reply-To: (Helmut Eller's message of "Mon, 25 Oct 2010 13:39:23 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Helmut Eller writes: > This code: > > (with-temp-file "/tmp/x.x" > (let ((print-escape-multibyte nil)) > (prin1 (string ?\x03bb) (current-buffer)))) > > writes "\x03bb" to the file, i.e. it seems to ignore the value > of print-escape-multibyte. I cannot reprodoce that. I also tried setting print-escape-multibyte to t and got the expected effect. Note that print-escape-multibyte is nil by default anyway. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Mon Jun 23 07:53:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7279: 24.0.50; print-escape-multibyte not honored Resent-From: Helmut Eller Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Oct 2010 19:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 7279@debbugs.gnu.org Received: via spool by 7279-submit@debbugs.gnu.org id=B7279.12880332465703 (code B ref 7279); Mon, 25 Oct 2010 19:01:02 +0000 Received: (at 7279) by debbugs.gnu.org; 25 Oct 2010 19:00:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PASHl-0001Tw-DH for submit@debbugs.gnu.org; Mon, 25 Oct 2010 15:00:45 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PASHj-0001Tq-45 for 7279@debbugs.gnu.org; Mon, 25 Oct 2010 15:00:43 -0400 Received: by gya6 with SMTP id 6so2432825gya.3 for <7279@debbugs.gnu.org>; Mon, 25 Oct 2010 12:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :references:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=ezZstT0g2fwL5aw88MHesILHviqvorTWQrkoO0kbQxo=; b=UODEECUcilEx4zpKq0Iuaald+kUKM7NK8nGMjYnV9M/rXZOwCEUXYDJr2ViWeK2nHl zgUuMkkf0THbDhW3CY+7aRY5foHMJbnHHS0S47INmBFZMKRriUhHzt75zXGn7zwtIASN Xr0xnJB3/5gwr4vYzodZMus7bDKAqet3TUZVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=JnnK7nRWxe7d7uCN/AncD85fNSzwDjoD7E9tMmd+sGVVUZJGCimXrP7oN7we5UVO1z Nj9j6tvu7jsawop0TAB05rWpTZF40DSeC9tZ6nwca/rSKiLwdZJBvf5LzvTt0/XKRCk6 dtZL7kbv3lDifM1RRC4RyDNu4/KJz6keh8WSY= Received: by 10.204.53.9 with SMTP id k9mr2290056bkg.102.1288033483757; Mon, 25 Oct 2010 12:04:43 -0700 (PDT) Received: from ix ([212.46.169.140]) by mx.google.com with ESMTPS id g8sm5144775bkg.23.2010.10.25.12.04.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 Oct 2010 12:04:41 -0700 (PDT) Received: from helmut by ix with local (Exim 4.69) (envelope-from ) id 1PASLW-00062e-KW; Mon, 25 Oct 2010 21:04:38 +0200 From: Helmut Eller References: Date: Mon, 25 Oct 2010 21:04:38 +0200 In-Reply-To: (Andreas Schwab's message of "Mon, 25 Oct 2010 20:02:06 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) * Andreas Schwab [2010-10-25 18:02] writes: > Helmut Eller writes: > >> This code: >> >> (with-temp-file "/tmp/x.x" >> (let ((print-escape-multibyte nil)) >> (prin1 (string ?\x03bb) (current-buffer)))) >> >> writes "\x03bb" to the file, i.e. it seems to ignore the value >> of print-escape-multibyte. > > I cannot reprodoce that. I also tried setting print-escape-multibyte to > t and got the expected effect. Note that print-escape-multibyte is nil > by default anyway. And this? (with-temp-file "/tmp/x.x" (set-buffer-multibyte nil) (let ((print-escape-multibyte nil)) (prin1 (string ?\x80) (current-buffer)))) Helmut From unknown Mon Jun 23 07:53:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7279: 24.0.50; print-escape-multibyte not honored Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jan 2017 07:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Helmut Eller Cc: 7279@debbugs.gnu.org, Andreas Schwab Received: via spool by 7279-submit@debbugs.gnu.org id=B7279.148576031911568 (code B ref 7279); Mon, 30 Jan 2017 07:12:02 +0000 Received: (at 7279) by debbugs.gnu.org; 30 Jan 2017 07:11:59 +0000 Received: from localhost ([127.0.0.1]:50683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cY686-00030R-VS for submit@debbugs.gnu.org; Mon, 30 Jan 2017 02:11:59 -0500 Received: from mail-it0-f50.google.com ([209.85.214.50]:36689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cY685-00030A-FY; Mon, 30 Jan 2017 02:11:57 -0500 Received: by mail-it0-f50.google.com with SMTP id c7so187804854itd.1; Sun, 29 Jan 2017 23:11:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=0saVat/GAruz9BSHqA9xtJyHe/m8v14OKIvRktBxBx8=; b=e2ohW+Wy8rNGqjBqEW/WkOlGwTyzneLoV9V598k8OXhYKNOt7KA5AClqoScV3JOuRa dRGu3IXYKrAoMMVnB+Ayi/FntvvZ423DYV7bNeqCjIDn0RZP7EzgckCGIK/0G68l3rn/ 9XtqKc21Oiy6HfZMbSvujE+I3anO2Bxc/Iti4lKyPxULNH/55GZ90Tqqz19mOATnyW3X MIY5nMNpS8Not5+aIuAYZVNKn6JXc9KqDCWnBQUe2vZSQPx/mZHXplfSN8YEYXQhXaBI G3sGEeRFmqjGYQy1HQSErMwbgMM5M5M1dxMrmC17akCy4w8SHyNrcS0Gc28n67aMiffL NXVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=0saVat/GAruz9BSHqA9xtJyHe/m8v14OKIvRktBxBx8=; b=KNC8nTinONBA+5smdJWCO7lDauomLfd/+5Ifrv2JyPD+vObf4+A7vfA/tn8i2qhc/u ANSCcDGwueZOWZpLenm54QtbS0EL4Od/X1xB0Ewg44/ClXM6e+2Uh4hcCMp29ucRGmiI u8oQQnHKyikogylPAWQzhqAMwm/JbIwOYX2Njga8RoEXxgTQN0WXWF6/ewpCXlSK6e0v IQ2AE7XMv1GXplFu6gaWbVNdUg+jryKmByR3wN64Utj41oCET10VDKHlqrHcbK+X3R3O XeQQ9/ZUJVIZLCKRdqILWLHqJ+6vb5B4wYGRoZtZDQTLPgQzQ9wz80oMWU2xV0neKVyC V4lA== X-Gm-Message-State: AIkVDXLfu1irhNErRY7+NA9ufk3txGSGD42on95L6A0E2XBMW8xscSPfvnLM8ugWdievTg== X-Received: by 10.36.88.20 with SMTP id f20mr14092290itb.9.1485760311989; Sun, 29 Jan 2017 23:11:51 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 197sm5991456ita.14.2017.01.29.23.11.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Jan 2017 23:11:51 -0800 (PST) From: npostavs@users.sourceforge.net References: Date: Mon, 30 Jan 2017 02:12:58 -0500 In-Reply-To: (Helmut Eller's message of "Mon, 25 Oct 2010 21:04:38 +0200") Message-ID: <87poj5qav9.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) tags 7279 notabug close 7279 quit Helmut Eller writes: > * Andreas Schwab [2010-10-25 18:02] writes: > >> Helmut Eller writes: >> >>> This code: >>> >>> (with-temp-file "/tmp/x.x" >>> (let ((print-escape-multibyte nil)) >>> (prin1 (string ?\x03bb) (current-buffer)))) >>> >>> writes "\x03bb" to the file, i.e. it seems to ignore the value >>> of print-escape-multibyte. >> >> I cannot reprodoce that. I also tried setting print-escape-multibyte to >> t and got the expected effect. Note that print-escape-multibyte is nil >> by default anyway. > > And this? > > (with-temp-file "/tmp/x.x" > (set-buffer-multibyte nil) > (let ((print-escape-multibyte nil)) > (prin1 (string ?\x80) (current-buffer)))) > You can't print a multibyte string into a unibyte buffer, this works: (with-temp-file "/tmp/x.x" (set-buffer-multibyte nil) (let ((print-escape-multibyte nil)) (prin1 (unibyte-string ?\x80) (current-buffer)))) or if you want to handle unicode you must choose an encoding: (with-temp-file "/tmp/x.x" (set-buffer-multibyte nil) (let ((print-escape-multibyte nil)) (prin1 (encode-coding-string (string ?\x03bb) 'utf-8) (current-buffer))))