From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Axel Liljencrantz Newsgroups: gmane.emacs.bugs Subject: emacs hangs on invalid unicode character Date: Sun, 17 Apr 2005 16:17:19 +0200 Message-ID: <1113747439.4454.11.camel@hellboy> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1113748206 25207 80.91.229.2 (17 Apr 2005 14:30:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2005 14:30:06 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 17 16:30:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DNAmM-0007IU-Ge for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Apr 2005 16:29:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNAqH-0003sD-Fs for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Apr 2005 10:33:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DNAoA-0002Wk-74 for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2005 10:31:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DNAnz-0002Pc-Tb for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2005 10:31:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNAnw-0002KB-KB for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2005 10:31:20 -0400 Original-Received: from [130.237.222.115] (helo=smtp.nada.kth.se) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DNAbj-0003iQ-6k for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2005 10:18:43 -0400 X-Authentication-Info: The sender was authenticated as f97-ali using PLAIN at smtp.nada.kth.se Original-Received: from 192.168.0.2 (localhost [127.0.0.1]) (authenticated bits=0) by smtp.nada.kth.se (8.12.10/8.12.11) with ESMTP id j3HEHJon016228 for ; Sun, 17 Apr 2005 16:17:19 +0200 (MEST) Original-To: bug-gnu-emacs@gnu.org X-Mailer: Evolution 2.0.2 (2.0.2-3) X-MIME-Autoconverted: from 8bit to quoted-printable by smtp.nada.kth.se id j3HEHJon016228 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:11176 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:11176 I've encountered a bug in emacs, that I wanted to share. I could not find any mention of this issue in the mail archives.=20 If running emacs in terminal (non-X) mode, pressing Meta and a multibyte UFT character such as '=E5' (the swedish character looking like an 'a' with a circle above it), emacs hangs and takes up 100% CPU activity.=20 AFAIK this only happens in UTF-8 locales. To reproduce this problem: Set your OS to use a a Swedish keyboard layout. Issue this in bash: export LANG=3Den_US.UTF-8 emacs -nw Now hold Meta and the key to the right of 'p' on your keyboard.=20 emacs should now be hanged. The sequence generated p=E5 pressing '=E5' is -61 -91. The sequence generated by Meta-=E5 is 27, -61, -91. I think this bug works for any multi-byte character. I've encountered this bug on many different platforms, including this one: Version: emacs version 21.3.1 (shipped with Fedora Core 3) Platform: i386 OS: Fedora Core 3 Locale: en_US.UTF-8 --=20 Axel Liljencrantz