Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi
@ 2022-08-17 17:29 chase-net
  2022-08-19 13:48 ` abenson
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: chase-net @ 2022-08-17 17:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

New issue by chase-net on void-packages repository

https://github.com/void-linux/void-packages/issues/38742

Description:
### Is this a new report?

Yes

### System Info

Void 5.18.17_1 x86_64-musl GenuineIntel notuptodate hold rFFF

### Package(s) Affected

nvi-1.81.6_17

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

Searching should match space and tab characters when using the POSIX character classes [:space:] and [:blank:].

### Actual behaviour

[:space:] and [:blank:] seem to match the [:alnum:] character class.

### Steps to reproduce

1. Start vi. `EXINIT= vi`
2. Insert some text including spaces and alphanumeric characters and return to normal mode. `ia b c d<esc>`
3. Search for the character classes [:space:] or [:blank:]. `/[[:space:]]`
4. Cycle through matches with `n`.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [[:space:]] and [[:blank:] character classes not working as expected in nvi
  2022-08-17 17:29 [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi chase-net
@ 2022-08-19 13:48 ` abenson
  2022-08-19 13:49 ` [ISSUE] [CLOSED] " abenson
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: abenson @ 2022-08-19 13:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/issues/38742#issuecomment-1220705491

Comment:
This isn't a Void issue, this should be brought up with [`nvi` upstream](https://repo.or.cz/nvi.git).  

FWIW the behavior on Void's `nvi` seems consistent with other distributions (tested on Debian).

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ISSUE] [CLOSED] [[:space:]] and [[:blank:] character classes not working as expected in nvi
  2022-08-17 17:29 [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi chase-net
  2022-08-19 13:48 ` abenson
@ 2022-08-19 13:49 ` abenson
  2022-08-19 16:19 ` sgn
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: abenson @ 2022-08-19 13:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 889 bytes --]

Closed issue by chase-net on void-packages repository

https://github.com/void-linux/void-packages/issues/38742

Description:
### Is this a new report?

Yes

### System Info

Void 5.18.17_1 x86_64-musl GenuineIntel notuptodate hold rFFF

### Package(s) Affected

nvi-1.81.6_17

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

Searching should match space and tab characters when using the POSIX character classes [:space:] and [:blank:].

### Actual behaviour

[:space:] and [:blank:] seem to match the [:alnum:] character class.

### Steps to reproduce

1. Start vi. `EXINIT= vi`
2. Insert some text including spaces and alphanumeric characters and return to normal mode. `ia b c d<esc>`
3. Search for the character classes [:space:] or [:blank:]. `/[[:space:]]`
4. Cycle through matches with `n`.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [[:space:]] and [[:blank:] character classes not working as expected in nvi
  2022-08-17 17:29 [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi chase-net
  2022-08-19 13:48 ` abenson
  2022-08-19 13:49 ` [ISSUE] [CLOSED] " abenson
@ 2022-08-19 16:19 ` sgn
  2022-08-19 16:20 ` sgn
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: sgn @ 2022-08-19 16:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/38742#issuecomment-1220860177

Comment:
Yes, `nvi` uses nvi bundled `regexp(3)` not libc's one. It can't be compiled with libc's `regexp(3)` at least with musl, since it uses `REG_STARTEND` which is an BSD-extension.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [[:space:]] and [[:blank:] character classes not working as expected in nvi
  2022-08-17 17:29 [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi chase-net
                   ` (2 preceding siblings ...)
  2022-08-19 16:19 ` sgn
@ 2022-08-19 16:20 ` sgn
  2022-08-19 17:32 ` sgn
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: sgn @ 2022-08-19 16:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/38742#issuecomment-1220860177

Comment:
Yes, `nvi` uses nvi bundled `regexp(3)` not libc's one. It can't be compiled with libc's `regexp(3)` at least with musl, since it uses `REG_STARTEND` which is an BSD-extension. IOW, maybe upstream `regexp(3)` was buggy.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [[:space:]] and [[:blank:] character classes not working as expected in nvi
  2022-08-17 17:29 [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi chase-net
                   ` (3 preceding siblings ...)
  2022-08-19 16:20 ` sgn
@ 2022-08-19 17:32 ` sgn
  2022-08-19 17:43 ` chase-net
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: sgn @ 2022-08-19 17:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/38742#issuecomment-1220921693

Comment:
Anyway, the character classes has been fix.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [[:space:]] and [[:blank:] character classes not working as expected in nvi
  2022-08-17 17:29 [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi chase-net
                   ` (4 preceding siblings ...)
  2022-08-19 17:32 ` sgn
@ 2022-08-19 17:43 ` chase-net
  2022-08-19 18:04 ` sgn
  2022-08-19 18:40 ` chase-net
  7 siblings, 0 replies; 9+ messages in thread
From: chase-net @ 2022-08-19 17:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

New comment by chase-net on void-packages repository

https://github.com/void-linux/void-packages/issues/38742#issuecomment-1220939670

Comment:
It seems this was fixed in the upstream as well. The latest snapshot compiles without patches and has this and #38741 fixed.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [[:space:]] and [[:blank:] character classes not working as expected in nvi
  2022-08-17 17:29 [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi chase-net
                   ` (5 preceding siblings ...)
  2022-08-19 17:43 ` chase-net
@ 2022-08-19 18:04 ` sgn
  2022-08-19 18:40 ` chase-net
  7 siblings, 0 replies; 9+ messages in thread
From: sgn @ 2022-08-19 18:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/38742#issuecomment-1220960653

Comment:
> It seems this was fixed in the upstream as well. The latest snapshot compiles without patches and has this and #38741 fixed.

Ask them for a release, then.
Quoting https://repo.or.cz/nvi.git/blob/HEAD:/README.1st#l1

> This is a development version of nvi.
> Use at your own risk.

For this bug, it can be traced easily, but #38741 is hard to trace.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [[:space:]] and [[:blank:] character classes not working as expected in nvi
  2022-08-17 17:29 [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi chase-net
                   ` (6 preceding siblings ...)
  2022-08-19 18:04 ` sgn
@ 2022-08-19 18:40 ` chase-net
  7 siblings, 0 replies; 9+ messages in thread
From: chase-net @ 2022-08-19 18:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

New comment by chase-net on void-packages repository

https://github.com/void-linux/void-packages/issues/38742#issuecomment-1220990521

Comment:
> Ask them for a release, then.

Will do. Thank you for the patches.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-08-19 18:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-17 17:29 [ISSUE] [[:space:]] and [[:blank:] character classes not working as expected in nvi chase-net
2022-08-19 13:48 ` abenson
2022-08-19 13:49 ` [ISSUE] [CLOSED] " abenson
2022-08-19 16:19 ` sgn
2022-08-19 16:20 ` sgn
2022-08-19 17:32 ` sgn
2022-08-19 17:43 ` chase-net
2022-08-19 18:04 ` sgn
2022-08-19 18:40 ` chase-net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).