Subject: Re: CVS commit: pkgsrc/shells/bash2
To: Min Sik Kim <minskim@netbsd.org>
From: Jonathan Perkin <jonathan@perkin.org.uk>
List: tech-pkg
Date: 08/03/2004 16:37:14
--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

[ Sorry for the late reply, taken me a while to diagnose this.. ]

* On 2004-06-22 at 14:05 BST, Min Sik Kim wrote:

> Modified Files:
> 	pkgsrc/shells/bash2: Makefile distinfo
> 	pkgsrc/shells/bash2/patches: patch-aa patch-ac patch-ad
> Added Files:
> 	pkgsrc/shells/bash2/patches: patch-ah patch-ai patch-aj
>
> Log Message:
> Disable multibyte support only when wctype_t is not available.  The
> previous patches disabled it on NetBSD unconditionally.  Bump
> PKGREVISION.

This subtly breaks things in an odd way, probably best explained by the
following:

  $ bash --noprofile --norc
  bash-2.05b$ echo $PS1
  \s-\v\$
  bash-2.05b$ PS1=3D"\[\033]2;title bar\007\]\s-\v$ " # set up title bar
  bash-2.05b$  echo $LC_CTYPE # notice the extra space in the prompt.
  en_GB.ISO8859-15
  bash-2.05b$  LC_CTYPE=3Den_US.UTF-8 # watch the space disappear
  bash-2.05b$ LC_CTYPE=3DC # and come back again...
  bash-2.05b$  PS1=3D"\033]2;title bar\007\s-\v$ " # don't compute width pr=
operly
  bash-2.05b$ this is some long text which will start wrapping here

and if I carry on typing it overwrites the "bash-..." at the beginning
of the line (although this behaviour is the same as with standard bash).

Backing out these changes reverts to standard working behaviour.  Now,
this is hardly a critical bug, but it's actually rather annoying!  If
nobody knows the quick fix to this (I've not a clue where to start
looking), could it be backed out, or are the fixes worth the
inconvenience to anyone using escape sequences in their prompt?

Cheers,

--=20
Jonathan Perkin                                       The NetBSD Project
http://www.perkin.org.uk/                         http://www.netbsd.org/

--k+w/mQv8wyuph6w0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iQEVAwUBQQ+xKiFee6/VMqV4AQJwMQgApPPidcTAEVeYj2kj02dZxhOXhodHQqNH
gjlx9vXlkW9mbeLPgTI/hktvX0mKe+mlOfMkwFclp0DEFzIuDixzcFqLIbJRybsp
fhLchy67XlDHdQOft+Sz9WK91YM8vPER6YPaIObGi+8MfRz6nMteQ7rDf7jXZCC4
EOpYA0iexbmRaFBgqsplD7eGEUoFOlRSlhltqbYv+XWrrvv9CWjwM5ADryslkfSS
39beQWk+a8H8G10XOCedPU8TQJ3YdWh8fzzVbmjFezUin+lmIobcakw16Sino8Y+
NG+wW3ZbZB9sdxVu36UM2Cg/4V9Bhh64DWINkX2lvyCdynDHuUujfw==
=cYwR
-----END PGP SIGNATURE-----

--k+w/mQv8wyuph6w0--