Debian Bug report logs -
#175127
libreadline4: ~ doesn't work in UTF-8 locale
Reported by: dman <dman@dman.ddts.net>
Date: Fri, 3 Jan 2003 03:18:03 UTC
Severity: normal
Found in version 4.3-4
Fixed in version readline4/4.3-5
Done: Matthias Klose <doko@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>, readline4@packages.qa.debian.org:
Bug#175127; Package libreadline4.
(full text, mbox, link).
Acknowledgement sent to dman <dman@dman.ddts.net>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>, readline4@packages.qa.debian.org.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: libreadline4
Version: 4.3-4
Severity: normal
The ~ command should switch the case of the character under the cursor
like in vi. With a locale like en_US it works. However, with a
locale like en_US.UTF-8 it appends several non-printing characters
after the character under the cursor.
As an example, type the sequence abc at the bash prompt. Then move
the cursor over the b and press ~. Using readline's vi-mode I can
edit the command line in vim, which shows the current command line to
be aBðÿ¿c (it should be aBc). (however, at the bash prompt the extra
characters appear as dotted boxes and the cursor moves unnaturally
over them).
-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dman 2.4.19-custom.4 #1 Tue Dec 3 00:15:51 EST 2002 i686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8
Versions of packages libreadline4 depends on:
ii libc6 2.3.1-3 GNU C Library: Shared libraries an
ii libncurses5 5.3.20021109-1 Shared libraries for terminal hand
Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>, readline4@packages.qa.debian.org:
Bug#175127; Package libreadline4.
(full text, mbox, link).
Acknowledgement sent to Derrick 'dman' Hudson <dman@dman.ddts.net>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>, readline4@packages.qa.debian.org.
Your message did not contain a Subject field. They are recommended and
useful because the title of a Bug is determined using this field.
Please remember to include a Subject field in your messages in future.
(full text, mbox, link).
Message #10 received at 175127@bugs.debian.org (full text, mbox, reply):
clone 175127 -1
reassign -1 bash
stop
Thanks to Chet Ramey for looking into this problem and sending me the
patch below. It works for me, at least, and looks reasonable. Since
bash includes the libreadline source directly, the patch must be
applied there as well as to libreadline. (the details of the problem
are given in bug #175127, filed against the libreadline4 package)
*** ../bash-2.05b/lib/readline/vi_mode.c Thu May 23 13:27:58 2002
--- lib/readline/vi_mode.c Tue Feb 4 15:11:07 2003
***************
*** 681,685 ****
{
wchar_t wc;
! char mb[MB_LEN_MAX];
mbstate_t ps;
--- 681,686 ----
{
wchar_t wc;
! char mb[MB_LEN_MAX+1];
! int mblen;
mbstate_t ps;
***************
*** 704,708 ****
if (wc)
{
! wctomb (mb, wc);
rl_begin_undo_group ();
rl_delete (1, 0);
--- 705,711 ----
if (wc)
{
! mblen = wcrtomb (mb, wc, &ps);
! if (mblen >= 0)
! mb[mblen] = '\0';
rl_begin_undo_group ();
rl_delete (1, 0);
--
\begin{humor}
Disclaimer:
If I receive a message from you, you are agreeing that:
1. I am by definition, "the intended recipient"
2. All information in the email is mine to do with as I see fit and make
such financial profit, political mileage, or good joke as it lends
itself to. In particular, I may quote it on USENET or the WWW.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that may
be included on your message
\end{humor}
http://dman.ddts.net/~dman/
Bug 175127 cloned as bug 179946.
Request was from Derrick 'dman' Hudson <dman@dman.ddts.net>
to control@bugs.debian.org.
(full text, mbox, link).
Reply sent to Matthias Klose <doko@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to dman <dman@dman.ddts.net>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #17 received at 175127-close@bugs.debian.org (full text, mbox, reply):
We believe that the bug you reported is fixed in the latest version of
readline4, which is due to be installed in the Debian FTP archive:
libreadline4-dbg_4.3-5_i386.deb
to pool/main/r/readline4/libreadline4-dbg_4.3-5_i386.deb
libreadline4-dev_4.3-5_i386.deb
to pool/main/r/readline4/libreadline4-dev_4.3-5_i386.deb
libreadline4_4.3-5_i386.deb
to pool/main/r/readline4/libreadline4_4.3-5_i386.deb
readline4_4.3-5.diff.gz
to pool/main/r/readline4/readline4_4.3-5.diff.gz
readline4_4.3-5.dsc
to pool/main/r/readline4/readline4_4.3-5.dsc
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 175127@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated readline4 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 1 Jun 2003 09:39:44 +0200
Source: readline4
Binary: libreadline4-dev libreadline4 libreadline4-dbg
Architecture: source i386
Version: 4.3-5
Distribution: unstable
Urgency: low
Maintainer: Matthias Klose <doko@debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description:
libreadline4 - GNU readline and history libraries, run-time libraries
libreadline4-dbg - GNU readline and history libraries, debugging libraries
libreadline4-dev - GNU readline and history libraries, development files
Closes: 175127 191209
Changes:
readline4 (4.3-5) unstable; urgency=low
.
* Fix ~ command working in UTF-8 locales (closes: #175127).
* Apply upstream patches 001, 002, 003, 004, 005.
* Do not redefine __attribute__ (closes: #191209).
Files:
550e1685af8d645546bb41e03f3c0933 616 base required readline4_4.3-5.dsc
79c4805af9e1e4235c7fd068a8e438a7 14770 base required readline4_4.3-5.diff.gz
856d30ba7e13608374c88e5e128275ef 135268 base required libreadline4_4.3-5_i386.deb
29e4b99b4c80c582516137a4f3595415 192574 devel optional libreadline4-dev_4.3-5_i386.deb
4689cc28ad545b4fdea401a2c89a3ec5 254826 devel extra libreadline4-dbg_4.3-5_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+2bQdStlRaw+TLJwRAtTHAJwInQf9KYj/vLSg/wYs+OLtpVseQgCfeCQJ
68o2uaJdf6BOAIaxvwBkA8s=
=gfhx
-----END PGP SIGNATURE-----
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Dec 6 08:04:54 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.