NetBSD Problem Report #46772

From yamt@NetBSD.org  Mon Aug  6 06:34:22 2012
Return-Path: <yamt@NetBSD.org>
Received: by www.NetBSD.org (Postfix, from userid 1270)
	id A8DEF63DFB7; Mon,  6 Aug 2012 06:34:22 +0000 (UTC)
Message-Id: <20120806063422.A8DEF63DFB7@www.NetBSD.org>
Date: Mon,  6 Aug 2012 06:34:22 +0000 (UTC)
From: yamt@NetBSD.org
Reply-To: yamt@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: wcwidth of combining characters
X-Send-Pr-Version: 3.95

>Number:         46772
>Category:       lib
>Synopsis:       wcwidth of combining characters
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 06 06:35:00 +0000 2012
>Closed-Date:    
>Last-Modified:  Wed Jun 20 01:18:12 +0000 2018
>Originator:     YAMAMOTO Takashi
>Release:        NetBSD current
>Organization:

>Environment:

>Description:
	zsh's configure script expects wcwidth(U+0301) == 0.
	linux and solaris seems to agree it should be 0.
	ours returns 1.
>How-To-Repeat:

>Fix:

Index: en_US.UTF-8.src
===================================================================
RCS file: /cvsroot/src/share/locale/ctype/en_US.UTF-8.src,v
retrieving revision 1.4
diff -u -p -r1.4 en_US.UTF-8.src
--- en_US.UTF-8.src	10 Feb 2005 18:12:42 -0000	1.4
+++ en_US.UTF-8.src	6 Aug 2012 06:33:09 -0000
@@ -493,7 +493,7 @@ SWIDTH1   0x02b0 - 0x02ee

 GRAPH     0x0300 - 0x034f  0x0360 - 0x036f
 PRINT     0x0300 - 0x034f  0x0360 - 0x036f
-SWIDTH1   0x0300 - 0x034f  0x0360 - 0x036f
+SWIDTH0   0x0300 - 0x034f  0x0360 - 0x036f

 MAPUPPER  < 0x0345 0x0399 >


>Release-Note:

>Audit-Trail:
From: "Takehiko NOZAKI" <tnozaki@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46772 CVS commit: src/share/locale/ctype
Date: Wed, 8 Aug 2012 18:40:37 +0000

 Module Name:	src
 Committed By:	tnozaki
 Date:		Wed Aug  8 18:40:37 UTC 2012

 Modified Files:
 	src/share/locale/ctype: en_US.UTF-8.src

 Log Message:
 fix PR lib/46772 wcwidth of combining characters.
 patch probyted by yamt@, thanks.


 To generate a diff of this commit:
 cvs rdiff -u -r1.4 -r1.5 src/share/locale/ctype/en_US.UTF-8.src

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: tnozaki@NetBSD.org
State-Changed-When: Wed, 08 Aug 2012 18:52:42 +0000
State-Changed-Why:
fixed in HEAD, thanks.

From: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@netbsd.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org,
	tnozaki@NetBSD.org, yamt@NetBSD.org
Subject: Re: lib/46772 (wcwidth of combining characters)
Date: Thu,  9 Aug 2012 03:35:17 +0000 (UTC)

 hi,

 > Synopsis: wcwidth of combining characters
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: tnozaki@NetBSD.org
 > State-Changed-When: Wed, 08 Aug 2012 18:52:42 +0000
 > State-Changed-Why:
 > fixed in HEAD, thanks.

 thanks.

 i suspect that there are more characters which need the same treatment.
 see the comment on mk_wcwidth in
 	http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c

 YAMAMOTO Takashi

State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 20 Jun 2018 01:18:12 +0000
State-Changed-Why:
Feedback received. more suspected.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.