From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#1215: 23.0.60; unibyte->multibyte conversion problem (in Date: Fri, 16 Jan 2009 12:08:58 +0100 Message-ID: References: Reply-To: Juanma Barranquero , 1215@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232105613 27391 80.91.229.12 (16 Jan 2009 11:33:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 11:33:33 +0000 (UTC) Cc: 1215@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 12:34:45 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LNmyL-0008G6-6t for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 12:34:45 +0100 Original-Received: from localhost ([127.0.0.1]:40239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNmx1-0003kq-HX for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 06:33:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNmnT-00086R-93 for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 06:23:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNmnQ-00085I-To for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 06:23:30 -0500 Original-Received: from [199.232.76.173] (port=48969 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNmnQ-00085F-Pb for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 06:23:28 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38396) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNmnQ-0000dn-Cz for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 06:23:28 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0GBNQYN009309; Fri, 16 Jan 2009 03:23:26 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0GBF3E8006629; Fri, 16 Jan 2009 03:15:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juanma Barranquero Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 16 Jan 2009 11:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1215 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1215-submit@emacsbugs.donarmstrong.com id=B1215.12321041465188 (code B ref 1215); Fri, 16 Jan 2009 11:15:03 +0000 Original-Received: (at 1215) by emacsbugs.donarmstrong.com; 16 Jan 2009 11:09:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0GB8xeX005170 for <1215@emacsbugs.donarmstrong.com>; Fri, 16 Jan 2009 03:09:00 -0800 Original-Received: by ug-out-1314.google.com with SMTP id 17so26505ugm.14 for <1215@emacsbugs.donarmstrong.com>; Fri, 16 Jan 2009 03:08:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7h6e+taaFNkNuCQe8idF5mZ6RP9R53VfrnzIxt2xIxA=; b=t3rsGmrkfof6T1XqiKzd20yk7INk/36UnApLyVWUs/08dUl5BYbH6Bur7DPWDLxzRC 0/MOYbGJKxpSNtll0dZBH2Z2WJz01tmZ8vGCb7bzQJvfnDwfcMcAQDSSw0hd1O+l59tZ e+9GMULrLNkFRmpS4xtPUp/e9nkrjNpfnj1qI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=cnzoDchw8cxIZQs2oAwib+rdJrSDjRCWwZKcg/3/yffGg7VxFmdaeATnh4gktMy+FZ OJ0EjYJrMNJ07jwCGp8yeBK06sbh4+nmmf4ph/Ne76qygtrxiYBk5r5qdLJogoqA2h9o MiCaBBoepBqy/fScWl0CytIzTIKACl8Dyr+BQ= Original-Received: by 10.210.35.17 with SMTP id i17mr2984568ebi.140.1232104138613; Fri, 16 Jan 2009 03:08:58 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 16 Jan 2009 06:23:30 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24204 Archived-At: On Fri, Jan 16, 2009 at 04:37, Stefan Monnier wr= ote: > You're cheating: remove the (set-buffer-multibyte nil). > Otherwise you're not actually inserting the ?=C2=AB char but the #xAB > byte instead. OK, I see. You said: "There's a bug here, indeed: Emacs should refuse to save such a file, because raw-text-unix (to which I prefer to refer as `binary') cannot encode =C2=AB and =C2=BB." but according to raw-text-unix's description: t -- raw-text-unix Raw text, which means text contains random 8-bit codes. Encoding text with this coding system produces the actual byte sequence of the text in buffers and strings. An exception is made for eight-bit-control characters. Each of them is encoded into a single byte. you can save (almost) anything with it. What is the bug? Juanma