~nprescott

Recent activity

[PATCH gamja] sort member-list with localeCompare 14 days ago

From Nolan Prescott to ~emersion/public-inbox

The difference in case sensitivity is the most obvious change with
servers like soju that support CASEMAPPING ascii and
rfc1459. Currently the list:
  'Alpha', 'aardvark', 'Charlie', 'comma'
currently sorts to:
  'Alpha', 'Charlie', 'aardvark', 'comma'
with this change it will instead become:
  'aardvark', 'Alpha', 'Charlie', 'comma'

If something like RFC 7613 gets broader support then there are a few
more differences for a list like:
  'éclair', 'ecstatic, 'aardvark', 'zed', 'Gamma'
currently sorts to:
  'Gamma', 'aardvark', 'ecstatic', 'zed', 'éclair'
[message trimmed]

[PATCH hare v2] regex: trailing hyphen not a range 3 months ago

From Nolan Prescott to ~sircmpwn/hare-dev

Per the POSIX ERE specification[0]:

> The <hyphen-minus> character shall be treated as itself if it occurs
first (after an initial '^', if any) or last in the list, or as an
ending range point in a range expression.

0: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03_05

Implements: https://todo.sr.ht/~sircmpwn/hare/624
Signed-off-by: Nolan Prescott <mail@nprescott.com>
---
 regex/+test.ha | 8 ++++++++
 regex/regex.ha | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
[message trimmed]

[PATCH] regex: trailing hyphen not a range 3 months ago

From Nolan Prescott to ~sircmpwn/hare-dev

Per the POSIX ERE specification[0]:

> The <hyphen-minus> character shall be treated as itself if it occurs
first (after an initial '^', if any) or last in the list, or as an
ending range point in a range expression.

0: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03_05

Implements: https://todo.sr.ht/~sircmpwn/hare/624
Signed-off-by: Nolan Prescott <mail@nprescott.com>
---
 regex/+test.ha | 8 ++++++++
 regex/regex.ha | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
[message trimmed]

[PATCH hare] regex: require quantifier minimum in range 3 months ago

From Nolan Prescott to ~sircmpwn/hare-dev

Intended to address https://todo.sr.ht/~sircmpwn/hare/633 where
valgrind flags a conditional jump on uninitialized value(s) stemming
from regex.parse_repetition. The source of the uninitialized value
isn't called out in the ticket but is visible with:

  valgrind --track-origins=yes .bin/hare-tests regex::find

The POSIX ERE grammar[0] does not specify a quantifier syntax with
undefined minimums (e.g. `{,2}`), this patch will error in such a case
rather than use the void value with `rep_parts.0`

0: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_05_03
Signed-off-by: Nolan Prescott <mail@nprescott.com>
---
[message trimmed]

[PATCH sr.ht-docs] correct hg email flag 11 months ago

From Nolan Prescott to ~sircmpwn/sr.ht-dev

the correct flag is `--flag` instead of the plural `--flags`

diff --git a/hg.sr.ht/email.md b/hg.sr.ht/email.md
--- a/hg.sr.ht/email.md
+++ b/hg.sr.ht/email.md
@@ -182,10 +182,10 @@ Some projects have several repositories 
list, and it's often helpful to specify the particular repository your patch
pertains to.

If you're just doing this once, add `--flags` to `hg email`. You can specify it
multiple times if you also need to specify `--flags V2`. For instance:
If you're just doing this once, add `--flag` to `hg email`. You can specify it
multiple times if you also need to specify `--flag V2`. For instance:

[message trimmed]

[PATCH sr.ht-docs] standardize directory name 11 months ago

From Nolan Prescott to ~sircmpwn/sr.ht-dev

the nginx configuration within sr.ht-nginx uses /var/lib/mercurial (as
does the configuration example within this document)

intended to address:
    https://todo.sr.ht/~sircmpwn/hg.sr.ht/43

diff --git a/hg.sr.ht/configuration.md b/hg.sr.ht/configuration.md
--- a/hg.sr.ht/configuration.md
+++ b/hg.sr.ht/configuration.md
@@ -20,8 +20,8 @@ This document covers the configuration p
</div>

As a repository hosting service, hg.sr.ht requires a place for storing
repositories (we recommend `/var/lib/hg/`). It also requires a `hg` user who
[message trimmed]

[PATCH hg.sr.ht] standardize directory name 11 months ago

From Nolan Prescott to ~sircmpwn/sr.ht-dev

basically a documentation fix - the nginx configuration within
sr.ht-nginx uses /var/lib/mercurial and the hg.sr.ht alpine package
creates the same

intended to address:
    https://todo.sr.ht/~sircmpwn/hg.sr.ht/43

diff --git a/config.example.ini b/config.example.ini
--- a/config.example.ini
+++ b/config.example.ini
@@ -98,7 +98,7 @@ oauth-client-id=CHANGEME
oauth-client-secret=CHANGEME
#
# Path to mercurial repositories on disk
[message trimmed]

Re: Suspected Bug in man.sr.ht's Markdown Parser 1 year, 1 month ago

From Nolan Prescott to ~sircmpwn/sr.ht-discuss

> ... you can see that the first line ... is not like the others (2
> bullet-points directly after another) while the content of the first
> bullet-point is moved above the ToC.

You will need to add a newline after your YAML front matter to correct
the inclusion of your title in the table of contents:

```
---
title: Environment
---

# Environment variables
```

[PATCH V3 man.sr.ht] Move username out of wiki title 1 year, 5 months ago

From Nolan Prescott to ~sircmpwn/sr.ht-dev

piggyback the header-extension style used in git.sr.ht for repository
descriptions in order to move wiki owner out of the wiki title while
keeping it visually adjacent. Link username to wiki profile page.

Intended to address sr.ht-discuss: Wiki "Public" page
<C96YNX5WZPFC.1CU197QUTFYCI@taiga>

diff --git a/mansrht/templates/content.html b/mansrht/templates/content.html
--- a/mansrht/templates/content.html
+++ b/mansrht/templates/content.html
@@ -12,11 +12,7 @@
  <div class="container">
    <ul class="nav nav-tabs">
      <h2>
[message trimmed]

[PATCH V2 man.sr.ht] Move username out of wiki title 1 year, 5 months ago

From Nolan Prescott to ~sircmpwn/sr.ht-dev

piggyback the header-extension style used in git.sr.ht for repository
descriptions in order to move wiki owner out of the wiki title while
keeping it visually adjacent. Link username to wiki profile page.

Intended to address sr.ht-discuss: Wiki "Public" page
<C96YNX5WZPFC.1CU197QUTFYCI@taiga>

diff --git a/mansrht/templates/content.html b/mansrht/templates/content.html
--- a/mansrht/templates/content.html
+++ b/mansrht/templates/content.html
@@ -12,11 +12,7 @@
  <div class="container">
    <ul class="nav nav-tabs">
      <h2>
[message trimmed]