GNU bug report logs -
#5193
23.1; single-key-description problem
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sat, 12 Dec 2009 16:10:05 UTC
Severity: normal
Done: Andreas Schwab <schwab <at> linux-m68k.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5193 in the body.
You can then email your comments to 5193 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#5193
; Package
emacs
.
(Sat, 12 Dec 2009 16:10:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sat, 12 Dec 2009 16:10:05 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
emacs -Q
The character range (128 . 4194303) is bound to `self-insert-command'.
(single-key-description 128) gives "\200"
(single-key-description 4194303) gives "\377"
However, in the former case, "\200" is a string with one character,
\200. In the latter case, "\377" is a string with four characters, \,
3, 7, and 7.
In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
of 2009-07-29 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#5193
; Package
emacs
.
(Sun, 18 Sep 2011 10:10:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 5193 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> The character range (128 . 4194303) is bound to `self-insert-command'.
>
> (single-key-description 128) gives "\200"
> (single-key-description 4194303) gives "\377"
>
> However, in the former case, "\200" is a string with one character,
> \200. In the latter case, "\377" is a string with four characters, \,
> 3, 7, and 7.
Something seems to have changed here:
(single-key-description 128) => ""
(single-key-description 4194303) => "\301\277"
But it's essentially still the same -- the 128 is a string of one
character, and the other one is a string of 8 characters.
I have no idea whether this is a bug or a feature, though.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#5193
; Package
emacs
.
(Mon, 19 Sep 2011 18:58:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 5193 <at> debbugs.gnu.org (full text, mbox):
>> The character range (128 . 4194303) is bound to `self-insert-command'.
>> (single-key-description 128) gives "\200"
>> (single-key-description 4194303) gives "\377"
>> However, in the former case, "\200" is a string with one character,
>> \200. In the latter case, "\377" is a string with four characters, \,
>> 3, 7, and 7.
> Something seems to have changed here:
> (single-key-description 128) => "€"
This change is just the result of the switch from emacs-mule in
Emacs-22 to emacs-unicode in Emacs≥23 (i.e. 128 doesn't mean the same
char any more).
> (single-key-description 4194303) => "\301\277"
> But it's essentially still the same -- the 128 is a string of one
> character, and the other one is a string of 8 characters.
> I have no idea whether this is a bug or a feature, though.
Showing the internal representation of byte characters is clearly a bug.
I.e. (single-key-description 4194303) could/should return something like
"\377" either as a single char or as 4 chars.
Stefan
Reply sent
to
Andreas Schwab <schwab <at> linux-m68k.org>
:
You have taken responsibility.
(Mon, 19 Sep 2011 21:29:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Mon, 19 Sep 2011 21:29:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 5193-done <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> Showing the internal representation of byte characters is clearly a bug.
Fixed on emacs-23.
> I.e. (single-key-description 4194303) could/should return something like
> "\377" either as a single char or as 4 chars.
The four char form is just the print representation and has nothing to
do with single-key-description.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Message #17 received at 5193-done <at> debbugs.gnu.org (full text, mbox):
>> Showing the internal representation of byte characters is clearly a bug.
> Fixed on emacs-23.
Thank you.
>> I.e. (single-key-description 4194303) could/should return something like
>> "\377" either as a single char or as 4 chars.
> The four char form is just the print representation and has nothing to
> do with single-key-description.
I just meant to say that I do not think it would be an error if
single-key-description chose to use the print representation.
Stefan
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 18 Oct 2011 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 250 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.