all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs hangs on invalid unicode character
@ 2005-04-17 14:17 Axel Liljencrantz
       [not found] ` <E1DNFJA-0005Tz-Rn@fencepost.gnu.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Liljencrantz @ 2005-04-17 14:17 UTC (permalink / raw)



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. 

If running emacs in terminal (non-X) mode, pressing Meta and a multibyte
UFT character such as 'å' (the swedish character looking like an 'a'
with a circle above it), emacs hangs and takes up 100% CPU activity. 

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=en_US.UTF-8
emacs -nw

Now hold Meta and the key to the right of 'p' on your keyboard. 

emacs should now be hanged.


The sequence generated på pressing 'å' is -61 -91. The sequence
generated by Meta-å 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


-- 
Axel Liljencrantz <axel@liljencrantz.se>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs hangs on invalid unicode character
       [not found] ` <E1DNFJA-0005Tz-Rn@fencepost.gnu.org>
@ 2005-04-18  8:47   ` Axel Liljencrantz
  0 siblings, 0 replies; 2+ messages in thread
From: Axel Liljencrantz @ 2005-04-18  8:47 UTC (permalink / raw)
  Cc: bug-gnu-emacs


On Sun, 17 Apr 2005, Richard Stallman wrote:

> Could you see if this still happens in the development
> Emacs sources from CVS on savannah.gnu.org?
>

I downloaded the latest version of emacs from CVS, and sure enough,
it doesn't hang. Using Meta-å gives the following error message in
the mini-buffer:

Invalid character: 04145, 2149, 0x865

Keep up the good work!

BTW, I'm really happy to se at least one mailing list that actually
resonds to bug reports.


--
Axel Liljencrantz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-18  8:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-17 14:17 emacs hangs on invalid unicode character Axel Liljencrantz
     [not found] ` <E1DNFJA-0005Tz-Rn@fencepost.gnu.org>
2005-04-18  8:47   ` Axel Liljencrantz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.