From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5700: emacs-23 and 8-bit characters in 128..255 Date: Tue, 09 Mar 2010 17:02:14 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1268173490 13244 80.91.229.12 (9 Mar 2010 22:24:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 9 Mar 2010 22:24:50 +0000 (UTC) Cc: 5700@debbugs.gnu.org To: "Nelson H. F. Beebe" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 09 23:24:46 2010 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.69) (envelope-from ) id 1Np7qt-000209-Qw for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Mar 2010 23:24:40 +0100 Original-Received: from localhost ([127.0.0.1]:37042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np7qp-0003yu-LS for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Mar 2010 17:24:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Np7ql-0003vt-65 for bug-gnu-emacs@gnu.org; Tue, 09 Mar 2010 17:24:27 -0500 Original-Received: from [140.186.70.92] (port=41533 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np7qk-0003uH-7q for bug-gnu-emacs@gnu.org; Tue, 09 Mar 2010 17:24:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Np7qi-0006ww-VB for bug-gnu-emacs@gnu.org; Tue, 09 Mar 2010 17:24:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36290) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Np7qi-0006ws-TS for bug-gnu-emacs@gnu.org; Tue, 09 Mar 2010 17:24:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Np7W2-000171-16; Tue, 09 Mar 2010 17:03:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Mar 2010 22:03:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: followup 5700 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5700-submit@debbugs.gnu.org id=B5700.12681721434264 (code B ref 5700); Tue, 09 Mar 2010 22:03:01 +0000 Original-Received: (at 5700) by debbugs.gnu.org; 9 Mar 2010 22:02:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Np7VO-00016j-OR for submit@debbugs.gnu.org; Tue, 09 Mar 2010 17:02:22 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Np7VM-00016e-UF for 5700@debbugs.gnu.org; Tue, 09 Mar 2010 17:02:21 -0500 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o29M2FF6008268; Tue, 9 Mar 2010 17:02:15 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id EE20D3A201; Tue, 9 Mar 2010 17:02:14 -0500 (EST) In-Reply-To: (Nelson H. F. Beebe's message of "Tue, 9 Mar 2010 12:51:31 -0700 (MST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3487=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 09 Mar 2010 17:03:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:35504 Archived-At: > This morning, I set out to track down the source of one of the > problems in a function that I use a lot, and eventually narrowed it to > the failure of functions like these: > (string-equal (buffer-substring (point) (1+ (point))) "\377") Indeed, we have a problem: (string-equal "\377" (string-to-multibyte "\377")) returned t in Emacs-22 but returns nil in Emacs-23. Another (somewhat related) problem is that under Emacs-22, we had: "\377" prints as "\377" "\xff" prints as "\xff" (multibyte-string-p "\377") prints as "\xff" which seems acceptable, whereas under Emacs-23 we have: "\377" prints as "=FF" "\xff" prints as "=FF" (multibyte-string-p "\377") prints as "\377" which looks rather confusing. > (looking-at "\377") This is probably a separate bug. > The internal encoding used for buffers and strings is now > Unicode-based and called `utf-8-emacs' (`emacs-internal' is an alias It is related, but only to the extent that a lot of the code that handles multibyte chars (and especially "eight-bit chars") was completely rewritten, and this is a very delicate area. Stefan