Subject: pkg/24195: shells/bash2 should support multibye locales on -current
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <richards@CS.Princeton.EDU>
List: netbsd-bugs
Date: 01/22/2004 12:42:45
>Number:         24195
>Category:       pkg
>Synopsis:       shells/bash2 wrongly disables multibyte support on -current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 22 17:43:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Christopher Richards
>Release:        NetBSD 1.6ZH
>Organization:
>Environment:
	
	
System: NetBSD morphism.CS.Princeton.EDU 1.6ZH NetBSD 1.6ZH (MORPHISM) #1: Fri Jan 16 10:36:39 EST 2004 richards@morphism.CS.Princeton.EDU:/usr/obj/sys/arch/i386/compile/MORPHISM i386
Architecture: i386
Machine: i386
>Description:
	The bash2 patches unconditionally disable multibyte locale
	support	on NetBSD.  This was correct for 1.6.x, and -current
	prior to 2003/03/02, because the bash configure script wrongly
	inferred the existence of certain missing wc* functions.  These
	missing functions were added to -current on 2003/03/02, however,
	so the multibyte support should *not* be disabled on -current
	systems dating from 2003/03/02 or later.
	
>How-To-Repeat:
	Run -current.  Install bash2 and set LC_CTYPE to en_US.UTF-8, or
	some other multibyte locale.  Run bash, type characters with
	multibyte representations.  Notice that when backspacing repeadedly
	to the beginning of the command line, bash erases some of the prompt
	because it miscounted the number of bytes occupied by the line.
	
>Fix:
	Instead of patching bash to disable HAVE_MULTIBYTE if
	defined(__NetBSD__), either 1) disable HAVE_MULTIBYTE only
	if __NetBSD_Version__ is too old, or 2) fix the bash configure
	script so that it doesn't conflate the existence of some
	wc* functions with the existence of all of them.
	
>Release-Note:
>Audit-Trail:
>Unformatted: