Re: fix wcwidth (was: Re: ls(1) multibyte support)

2011-04-04 Thread Christian Weisgerber
Stefan Sperling s...@openbsd.org wrote: Change number 2 is the only one that hasn't been committed yet. According to http://pubs.opengroup.org/onlinepubs/009695399/functions/wcwidth.html wcwidth() should return -1 for non-printable characters. So this change looks good to me. Anyone want to

Re: Update UTF-8 locale ctype data (was: Re: ls(1) multibyte support)

2011-03-04 Thread Stefan Sperling
On Sat, Jan 15, 2011 at 12:44:51AM +0100, Stefan Sperling wrote: On Fri, Jan 14, 2011 at 05:21:46PM +0100, Stefan Sperling wrote: On Thu, Jan 06, 2011 at 07:52:19PM +0300, Alexander Polakov wrote: * Alexander Polakov polac...@gmail.com [110105 17:20]: Hi, here's an updated

Update UTF-8 locale ctype data (was: Re: ls(1) multibyte support)

2011-01-14 Thread Stefan Sperling
On Thu, Jan 06, 2011 at 07:52:19PM +0300, Alexander Polakov wrote: * Alexander Polakov polac...@gmail.com [110105 17:20]: Hi, here's an updated version. 1) en_US.UTF-8.src updates from FreeBSD Let's start with those. These changes are all fine, I checked them against Unicode 5.2.

Re: Update UTF-8 locale ctype data (was: Re: ls(1) multibyte support)

2011-01-14 Thread Stefan Sperling
On Fri, Jan 14, 2011 at 05:21:46PM +0100, Stefan Sperling wrote: On Thu, Jan 06, 2011 at 07:52:19PM +0300, Alexander Polakov wrote: * Alexander Polakov polac...@gmail.com [110105 17:20]: Hi, here's an updated version. 1) en_US.UTF-8.src updates from FreeBSD Let's start with

Re: ls(1) multibyte support

2011-01-06 Thread Alexander Polakov
* Alexander Polakov polac...@gmail.com [110105 17:20]: Hi, here's an updated version. 1) en_US.UTF-8.src updates from FreeBSD 2) wcwidth() changed to use the same code as iswprint() * maybe just use iswprint() itself? 3) _RUNETYPE_SW0 changed to be !0 (and match FreeBSD). 0 value is

Re: ls(1) multibyte support

2011-01-05 Thread Alexander Polakov
Hi, here's an updated version. 1) en_US.UTF-8.src updates from FreeBSD 2) wcwidth() changed to use the same code as iswprint() * maybe just use iswprint() itself? 3) _RUNETYPE_SW0 changed to be !0 (and match FreeBSD). 0 value is used in mklocale to perform additional checks required for

Re: ls(1) multibyte support

2011-01-04 Thread Stefan Sperling
On Tue, Jan 04, 2011 at 09:14:51PM +0300, Alexander Polakov wrote: Hi, I wonder if there any plans on adding multibyte support for ls(1)? Or maybe there's a reason why it's not a great idea (which I am not aware of)? Anyway, here's a patch I have. It's based on DragonFlyBSD's ls. Any

Re: ls(1) multibyte support

2011-01-04 Thread Alexander Polakov
* Stefan Sperling s...@stsp.name [110104 23:12]: On Tue, Jan 04, 2011 at 09:14:51PM +0300, Alexander Polakov wrote: Hi, I wonder if there any plans on adding multibyte support for ls(1)? Or maybe there's a reason why it's not a great idea (which I am not aware of)? Anyway, here's a

Re: ls(1) multibyte support

2011-01-04 Thread Jordi Beltran Creix
2011/1/5 Alexander Polakov polac...@gmail.com: 1) wcwidth(0x200B) This if from http://unicode.org/Public/UNIDATA/ : 200B;ZERO WIDTH SPACE;Cf;0;BN;N; 200C;ZERO WIDTH NON-JOINER;Cf;0;BN;N; 200D;ZERO WIDTH JOINER;Cf;0;BN;N; --- share/locale/ctype/en_US.UTF-8.src.orig B