[hackers] [libgrapheme] Add ./configure-script with presets for common systems || Laslo Hunhold

2022-10-11 Thread git
commit 30766915c37d88fc423a4d750227a769e7a307ae Author: Laslo Hunhold AuthorDate: Tue Oct 11 22:21:47 2022 +0200 Commit: Laslo Hunhold CommitDate: Tue Oct 11 22:21:47 2022 +0200 Add ./configure-script with presets for common systems After quite a few requests and a bit of

[hackers] [lchat] copyright update || Jan Klemkow

2022-10-09 Thread git
commit 1971dd4cb092a1d603d41bc35cb5b6425394d194 Author: Jan Klemkow AuthorDate: Sun Oct 9 23:44:18 2022 +0200 Commit: Jan Klemkow CommitDate: Sun Oct 9 23:44:18 2022 +0200 copyright update diff --git a/lchat.c b/lchat.c index 9725124..00a1f95 100644 --- a/lchat.c +++ b/lchat.c @@

Re: [hackers] [lchat] minor cleanup and adjustments || Tom Schwindl

2022-10-09 Thread Jan Klemkow
Hi NRK, On Sun, Oct 09, 2022 at 11:42:58AM +0600, NRK wrote: > > @@ -48,6 +48,14 @@ sigwinch(int sig) > > static void > > exit_handler(void) > > { > > + char *title = getenv("TERM"); > > + > > + /* reset terminal's window name */ > > + if (strncmp(title, "screen", 6) == 0) > > +

[hackers] [lchat] refactor printing of terminal title || Jan Klemkow

2022-10-09 Thread git
commit e821ed80afb2e4c922c000dbe59043064096516b Author: Jan Klemkow AuthorDate: Sun Oct 9 23:33:33 2022 +0200 Commit: Jan Klemkow CommitDate: Sun Oct 9 23:33:33 2022 +0200 refactor printing of terminal title - fix segmentation fault reported by NRK - remove redundant

[hackers] [lchat] update libgrapheme to version 2.0.1 || Jan Klemkow

2022-10-09 Thread git
commit 91579d79ea33b7f14db6b8187255971b467f2553 Author: Jan Klemkow AuthorDate: Sun Oct 9 22:41:59 2022 +0200 Commit: Jan Klemkow CommitDate: Sun Oct 9 22:41:59 2022 +0200 update libgrapheme to version 2.0.1 suggested by Tom Schwindl diff --git a/slackline.c b/slackline.c

Re: [hackers] [sic] bump version to 1.4 || Hiltjo Posthuma

2022-10-09 Thread Hiltjo Posthuma
On Sun, Oct 09, 2022 at 07:26:35PM +0200, Joerg Jung wrote: >I wonder why this does not show up here? > >[1]http://git.suckless.org/sic/ > >On 4. Oct 2022, at 19:29, [2]g...@suckless.org wrote: > >commit d028623f079c5c8fcdcc9ed9925a0d79dfd2c940 >Author: Hiltjo Posthuma

Re: [hackers] [sic] bump version to 1.4 || Hiltjo Posthuma

2022-10-09 Thread Joerg Jung
I wonder why this does not show up here? http://git.suckless.org/sic/ > On 4. Oct 2022, at 19:29, g...@suckless.org wrote: > > commit d028623f079c5c8fcdcc9ed9925a0d79dfd2c940 > Author: Hiltjo Posthuma > AuthorDate: Tue Oct 4 19:28:52 2022 +0200 > Commit:

[hackers] [libgrapheme] Bump to version 2.0.1 || Laslo Hunhold

2022-10-09 Thread git
commit 858c34a1e19bd790510bb918c583cea73487e64e Author: Laslo Hunhold AuthorDate: Sun Oct 9 12:13:42 2022 +0200 Commit: Laslo Hunhold CommitDate: Sun Oct 9 12:14:58 2022 +0200 Bump to version 2.0.1 Hardened the code using static analysis and improved the build system to

Re: [hackers] [lchat] minor cleanup and adjustments || Tom Schwindl

2022-10-08 Thread NRK
> @@ -48,6 +48,14 @@ sigwinch(int sig) > static void > exit_handler(void) > { > + char *title = getenv("TERM"); > + > + /* reset terminal's window name */ > + if (strncmp(title, "screen", 6) == 0) > + printf("\033k%s\033\\", title); I'd personally test for NULL before

[hackers] [lchat] minor cleanup and adjustments || Tom Schwindl

2022-10-08 Thread git
commit 1f48fc49963432855d340efd51abcc613bfcfd6c Author: Tom Schwindl AuthorDate: Sat Oct 8 12:14:00 2022 +0200 Commit: Jan Klemkow CommitDate: Sat Oct 8 22:23:21 2022 +0200 minor cleanup and adjustments diff --git a/Makefile b/Makefile index 24ef10c..bc4d363 100644 --- a/Makefile

[hackers] [libgrapheme] Explicitly pop the reader-limit in to_titlecase() || Laslo Hunhold

2022-10-08 Thread git
commit 657e9379807b215593e8c0706a51872b7870e8fe Author: Laslo Hunhold AuthorDate: Sat Oct 8 13:17:47 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Oct 8 13:17:47 2022 +0200 Explicitly pop the reader-limit in to_titlecase() This ensures that we don't have any stray limits

[hackers] [libgrapheme] Avoid memory leak in break_test_list_free() || Laslo Hunhold

2022-10-08 Thread git
commit a1913f83b643e883aa6754d8078aee7d46f53aec Author: Laslo Hunhold AuthorDate: Sat Oct 8 13:17:16 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Oct 8 13:17:30 2022 +0200 Avoid memory leak in break_test_list_free() Signed-off-by: Laslo Hunhold diff --git a/gen/util.c

[hackers] [libgrapheme] Prevent undefined behaviour in herodotus_reader_copy() || Laslo Hunhold

2022-10-08 Thread git
commit 004bdcf210baf1a63772bb7eca452bb0aeba010b Author: Laslo Hunhold AuthorDate: Sat Oct 8 13:13:03 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Oct 8 13:13:03 2022 +0200 Prevent undefined behaviour in herodotus_reader_copy() The first part usually catches harmless

[hackers] [libgrapheme] Avoid undefined behaviour and memory leaks in case-data-generator || Laslo Hunhold

2022-10-08 Thread git
commit 4182a14424c1e27b943187e230948ee31d6d66ba Author: Laslo Hunhold AuthorDate: Sat Oct 8 13:14:48 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Oct 8 13:14:48 2022 +0200 Avoid undefined behaviour and memory leaks in case-data-generator This was found using the

[hackers] [libgrapheme] Avoid memory leak in character-benchmark || Laslo Hunhold

2022-10-08 Thread git
commit decd5b53f1f1303d1f351e85238cad4987b8b6f0 Author: Laslo Hunhold AuthorDate: Sat Oct 8 13:16:51 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Oct 8 13:16:51 2022 +0200 Avoid memory leak in character-benchmark Signed-off-by: Laslo Hunhold diff --git

[hackers] [libgrapheme] Call ldconfig in a subshell || Laslo Hunhold

2022-10-08 Thread git
commit ef3e52a7f560f66df8ed1e2487872a1e62c5cedb Author: Laslo Hunhold AuthorDate: Sat Oct 8 11:22:18 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Oct 8 11:22:18 2022 +0200 Call ldconfig in a subshell This prevents a syntax error when LDCONFIG is unset.

[hackers] [libgrapheme] Check if LDCONFIG is set before calling it || Laslo Hunhold

2022-10-08 Thread git
commit 28064303528f2604c5bf932b1478eb9f7c7ffc04 Author: Laslo Hunhold AuthorDate: Sat Oct 8 11:11:49 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Oct 8 11:11:49 2022 +0200 Check if LDCONFIG is set before calling it Otherwise this prints a warning in some

[hackers] [libgrapheme] Enhance build-system to perfectly support OpenBSD and macOS || Laslo Hunhold

2022-10-08 Thread git
commit a6b3a194f0381c5aef9346d39b02eb058111d2a2 Author: Laslo Hunhold AuthorDate: Sat Oct 8 10:40:03 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Oct 8 10:46:31 2022 +0200 Enhance build-system to perfectly support OpenBSD and macOS Studying the source material on

Re: [hackers] [libgrapheme] Switch to semantic versioning and improve dynamic library handling || Laslo Hunhold

2022-10-08 Thread Laslo Hunhold
On Fri, 7 Oct 2022 23:32:08 +0600 NRK wrote: Dear NRK, > Curious, what makes you change you mind about putting these back in > config.mk instead of keeping them in the Makefile ? Since they aren't > meant to be changed by the user. you're totally right. I put them back at first because I would

[hackers] [libgrapheme] Move version statements back into the Makefile || Laslo Hunhold

2022-10-08 Thread git
commit d42f53b5baafe01caa48477e204b63e065660117 Author: Laslo Hunhold AuthorDate: Sat Oct 8 09:38:08 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Oct 8 09:38:08 2022 +0200 Move version statements back into the Makefile Ensure rebuilding on such changes by adding an

Re: [hackers] [libgrapheme] Switch to semantic versioning and improve dynamic library handling || Laslo Hunhold

2022-10-07 Thread NRK
On Wed, Oct 05, 2022 at 10:51:54PM +0200, g...@suckless.org wrote: > diff --git a/config.mk b/config.mk > index 14aedd3..f8bd40f 100644 > --- a/config.mk > +++ b/config.mk > @@ -1,3 +1,10 @@ > +# libgrapheme version > +VERSION_MAJOR = 1 > +VERSION_MINOR = 0 > +VERSION_PATCH = 0 > +UNICODE_VERSION

Re: [hackers] [libgrapheme] Check for empty destination before NUL-terminating || Christopher Wellons

2022-10-07 Thread NRK
On Fri, Oct 07, 2022 at 06:00:30PM +0200, g...@suckless.org wrote: > commit ad4877023146953d4daa8d91c119124c38620337 > Author: Christopher Wellons > AuthorDate: Fri Oct 7 11:33:10 2022 -0400 > Commit: Laslo Hunhold > CommitDate: Fri Oct 7 18:00:11 2022 +0200 > > Check for empty

Re: [hackers] [libgrapheme] Remove superfluous printf-parameter from the example || Laslo Hunhold

2022-10-07 Thread Quentin Rameau
> Remove superfluous printf-parameter from the example > > This fortunately has no functional effect, it's just redundant. Like this sentence above. ;p

[hackers] [libgrapheme] Check for empty destination before NUL-terminating || Christopher Wellons

2022-10-07 Thread git
commit ad4877023146953d4daa8d91c119124c38620337 Author: Christopher Wellons AuthorDate: Fri Oct 7 11:33:10 2022 -0400 Commit: Laslo Hunhold CommitDate: Fri Oct 7 18:00:11 2022 +0200 Check for empty destination before NUL-terminating This overflow was triggered in the second

[hackers] [libgrapheme] Remove superfluous printf-parameter from the example || Laslo Hunhold

2022-10-07 Thread git
commit 4b4292a8f78eec4271213982fdddaf1c479dfe96 Author: Laslo Hunhold AuthorDate: Fri Oct 7 12:40:51 2022 +0200 Commit: Laslo Hunhold CommitDate: Fri Oct 7 12:40:51 2022 +0200 Remove superfluous printf-parameter from the example This fortunately has no functional effect,

[hackers] [libgrapheme] Bump to version 2.0.0 || Laslo Hunhold

2022-10-06 Thread git
commit ef608a20a5431e68922e787cfdd68d893497d16f Author: Laslo Hunhold AuthorDate: Thu Oct 6 23:01:24 2022 +0200 Commit: Laslo Hunhold CommitDate: Thu Oct 6 23:04:50 2022 +0200 Bump to version 2.0.0 Signed-off-by: Laslo Hunhold diff --git a/config.mk b/config.mk index

[hackers] [libgrapheme] Update README || Laslo Hunhold

2022-10-06 Thread git
commit 1774b5430fe46d8d5511075d3cd644716ad4c3c8 Author: Laslo Hunhold AuthorDate: Thu Oct 6 22:57:31 2022 +0200 Commit: Laslo Hunhold CommitDate: Thu Oct 6 22:57:31 2022 +0200 Update README Signed-off-by: Laslo Hunhold diff --git a/README b/README index d1cf1f9..9f655e9

[hackers] [libgrapheme] Add is_case.sh to MAN_TEMPLATE || Laslo Hunhold

2022-10-05 Thread git
commit 5939cf21cdb050e1c9bce964a30c9ad94f7440b9 Author: Laslo Hunhold AuthorDate: Thu Oct 6 00:12:50 2022 +0200 Commit: Laslo Hunhold CommitDate: Thu Oct 6 00:12:50 2022 +0200 Add is_case.sh to MAN_TEMPLATE Signed-off-by: Laslo Hunhold diff --git a/Makefile b/Makefile

[hackers] [libgrapheme] Fix up smaller notational and type aspects for constants || Laslo Hunhold

2022-10-05 Thread git
commit f6ab5a6edf5eae9470f7eb6ee3062fd9a7865ead Author: Laslo Hunhold AuthorDate: Thu Oct 6 00:02:29 2022 +0200 Commit: Laslo Hunhold CommitDate: Thu Oct 6 00:02:29 2022 +0200 Fix up smaller notational and type aspects for constants Signed-off-by: Laslo Hunhold diff --git

[hackers] [libgrapheme] Explicitly clear suffix list and fix a small oversight || Laslo Hunhold

2022-10-05 Thread git
commit 6a70e181676e97dfe8a4b9b369ef15d286caf772 Author: Laslo Hunhold AuthorDate: Wed Oct 5 22:57:33 2022 +0200 Commit: Laslo Hunhold CommitDate: Wed Oct 5 22:57:33 2022 +0200 Explicitly clear suffix list and fix a small oversight The suffix list contains some rules defined

[hackers] [libgrapheme] Switch to semantic versioning and improve dynamic library handling || Laslo Hunhold

2022-10-05 Thread git
commit ed7ebdc7f7fa748f89372e034d6d983835db5d42 Author: Laslo Hunhold AuthorDate: Wed Oct 5 22:14:17 2022 +0200 Commit: Laslo Hunhold CommitDate: Wed Oct 5 22:44:52 2022 +0200 Switch to semantic versioning and improve dynamic library handling After long consideration, I've

[hackers] [libgrapheme] Fix sorting in grapheme.h || Laslo Hunhold

2022-10-05 Thread git
commit b583c3ab6855d491154f7be6d3bdb5c44380290c Author: Laslo Hunhold AuthorDate: Wed Oct 5 20:54:24 2022 +0200 Commit: Laslo Hunhold CommitDate: Wed Oct 5 20:54:24 2022 +0200 Fix sorting in grapheme.h Signed-off-by: Laslo Hunhold diff --git a/grapheme.h b/grapheme.h

[hackers] [tabbed] config.h: mark keys as const || NRK

2022-10-05 Thread git
commit 5ddbc73bb885cc140a19e2a2e338f3b1b89b2263 Author: NRK AuthorDate: Wed Oct 5 14:29:36 2022 +0600 Commit: Hiltjo Posthuma CommitDate: Wed Oct 5 17:54:36 2022 +0200 config.h: mark keys as const diff --git a/config.def.h b/config.def.h index defa426..51bb13d 100644 ---

[hackers] [tabbed][PATCH] don't assume non-null argv[0]

2022-10-05 Thread NRK
--- xembed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xembed.c b/xembed.c index cbb0e97..0066d04 100644 --- a/xembed.c +++ b/xembed.c @@ -15,7 +15,8 @@ main(int argc, char *argv[]) pid_t pgrp, tcpgrp; if (argc < 3) { - fprintf(stderr,

[hackers] [tabbed][PATCH] config.h: mark keys as const

2022-10-05 Thread NRK
--- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index defa426..51bb13d 100644 --- a/config.def.h +++ b/config.def.h @@ -34,7 +34,7 @@ static Bool npisrelative = False; } #define MODKEY ControlMask -static Key keys[] = { +static

[hackers] [surf][PATCH] define one atom per line; use XInternAtoms(3)

2022-10-04 Thread seninha
This commit changes two things for Atoms. First it changes the Atoms enum from a single line to one Atom per line. This makes it easy for applying patchs that add more Atoms to the list. With a single line, two patches adding atoms will conflict when changing the same line. With one line per

[hackers] [slock] bump version to 1.5 || Hiltjo Posthuma

2022-10-04 Thread git
commit 4f045545a25cc02c64bfc08d27ed2ccecb962292 Author: Hiltjo Posthuma AuthorDate: Tue Oct 4 19:45:14 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Tue Oct 4 19:45:14 2022 +0200 bump version to 1.5 diff --git a/config.mk b/config.mk index 74429ae..1e1ca45 100644 --- a/config.mk

[hackers] [slock] Makefile: explicit_bzero.c was copied twice (GNU make gives a warning) || Hiltjo Posthuma

2022-10-04 Thread git
commit 265704d73647e0d4823126bbb7ddde1d415a618d Author: Hiltjo Posthuma AuthorDate: Tue Oct 4 19:44:47 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Tue Oct 4 19:44:47 2022 +0200 Makefile: explicit_bzero.c was copied twice (GNU make gives a warning) diff --git a/Makefile

[hackers] [st] bump version to 0.9 || Hiltjo Posthuma

2022-10-04 Thread git
commit 68d1ad9b54e952e3079356aeab8ab37e44c56c2c Author: Hiltjo Posthuma AuthorDate: Tue Oct 4 19:40:30 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Tue Oct 4 19:40:30 2022 +0200 bump version to 0.9 diff --git a/config.mk b/config.mk index ddf278a..1e306f8 100644 --- a/config.mk

[hackers] [tabbed] bump version to 0.7 || Hiltjo Posthuma

2022-10-04 Thread git
commit b372f9ce28610dc8dd860abd42f9837972bc5adb Author: Hiltjo Posthuma AuthorDate: Tue Oct 4 19:38:44 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Tue Oct 4 19:38:44 2022 +0200 bump version to 0.7 diff --git a/config.mk b/config.mk index 29caa84..4bd0a40 100644 --- a/config.mk

[hackers] [dmenu] bump version to 5.2 || Hiltjo Posthuma

2022-10-04 Thread git
commit 1d2b462acf1210b8f86966b8dd9bb6e36e369ee1 Author: Hiltjo Posthuma AuthorDate: Tue Oct 4 19:36:02 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Tue Oct 4 19:36:02 2022 +0200 bump version to 5.2 diff --git a/config.mk b/config.mk index b0bd246..566348b 100644 --- a/config.mk

[hackers] [dwm] bump version to 6.4 || Hiltjo Posthuma

2022-10-04 Thread git
commit 50ad171eea9db5ccb36fce2592e047c3282975ff Author: Hiltjo Posthuma AuthorDate: Tue Oct 4 19:35:13 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Tue Oct 4 19:35:13 2022 +0200 bump version to 6.4 diff --git a/config.mk b/config.mk index 81c493e..ef8acf7 100644 --- a/config.mk

[hackers] [sic] bump version to 1.4 || Hiltjo Posthuma

2022-10-04 Thread git
commit d028623f079c5c8fcdcc9ed9925a0d79dfd2c940 Author: Hiltjo Posthuma AuthorDate: Tue Oct 4 19:28:52 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Tue Oct 4 19:28:52 2022 +0200 bump version to 1.4 diff --git a/Makefile b/Makefile index 58efc9f..2cad750 100644 --- a/Makefile +++

[hackers] [ii] bump version to 2.0 || Hiltjo Posthuma

2022-10-04 Thread git
commit 236114cf1fa4754da6679f68f01b5ab39553fe7c Author: Hiltjo Posthuma AuthorDate: Tue Oct 4 19:23:36 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Tue Oct 4 19:23:36 2022 +0200 bump version to 2.0 diff --git a/Makefile b/Makefile index 29e2f97..28c7781 100644 --- a/Makefile +++

Re: [hackers] [libgrapheme] Convert GRAPHEME_STATE to uint_least16_t and remove it || Laslo Hunhold

2022-10-04 Thread Laslo Hunhold
On Tue, 4 Oct 2022 05:07:13 +0600 NRK wrote: Dear NRK, > Another possibility is wrapping the integer inside a struct: > > typedef struct { unsigned internal_state; } GRAPHEME_STATE; > > the benefit of this is that the type GRAPHEME_STATE clearly states the > purpose, whereas a

[hackers] [libgrapheme] Use explicit constant-macro instead of cast || Laslo Hunhold

2022-10-04 Thread git
commit 0aa5d262f8d0975341bcc60916e12044c7d64d0d Author: Laslo Hunhold AuthorDate: Tue Oct 4 08:11:00 2022 +0200 Commit: Laslo Hunhold CommitDate: Tue Oct 4 08:11:40 2022 +0200 Use explicit constant-macro instead of cast Thanks NRK for the suggestion! Signed-off-by:

[hackers] [lchat] lchat: clean up terminal preparation || Tom Schwindl

2022-10-04 Thread git
commit afd762fabb08a2afc1230bec321756d7c2946764 Author: Tom Schwindl AuthorDate: Sat Sep 17 16:07:48 2022 +0200 Commit: Jan Klemkow CommitDate: Tue Oct 4 08:04:22 2022 +0200 lchat: clean up terminal preparation - reuse the value of `origin_term' instead of calling

[hackers] [lchat] lchat: remove the OPOST flag || Tom Schwindl

2022-10-04 Thread git
commit 8340100b4c016335b15dc693c57d603a81a9831c Author: Tom Schwindl AuthorDate: Sun Oct 2 11:10:32 2022 +0200 Commit: Jan Klemkow CommitDate: Tue Oct 4 08:04:22 2022 +0200 lchat: remove the OPOST flag OPOST created some strange behavior on some systems, thus, remove it.

Re: [hackers] [libgrapheme] Convert GRAPHEME_STATE to uint_least16_t and remove it || Laslo Hunhold

2022-10-03 Thread NRK
On Mon, Oct 03, 2022 at 11:28:49PM +0200, g...@suckless.org wrote: > The expression > > GRAPHEME_STATE state = 0; > > admittedly looks a little fishy, given you don't really know what happens > behind the scenes unless you look in the header, Another possibility

[hackers] [libgrapheme] Remove hyphen from "bare metal" || Laslo Hunhold

2022-10-03 Thread git
commit 608a5c3c12c036871e74c9da12fe1fffb400e3f1 Author: Laslo Hunhold AuthorDate: Tue Oct 4 00:56:52 2022 +0200 Commit: Laslo Hunhold CommitDate: Tue Oct 4 00:56:52 2022 +0200 Remove hyphen from "bare metal" Signed-off-by: Laslo Hunhold diff --git a/man/libgrapheme.sh

[hackers] [libgrapheme] Rework libgrapheme(7) a bit || Laslo Hunhold

2022-10-03 Thread git
commit 4a5b4abeec1b91986ec0258289abf79b6122531c Author: Laslo Hunhold AuthorDate: Tue Oct 4 00:17:04 2022 +0200 Commit: Laslo Hunhold CommitDate: Tue Oct 4 00:17:04 2022 +0200 Rework libgrapheme(7) a bit Add the information about the library being freestanding and fix

[hackers] [libgrapheme] Convert GRAPHEME_STATE to uint_least16_t and remove it || Laslo Hunhold

2022-10-03 Thread git
commit fc73d06fed76dd7cde37d3704949d01391ea0032 Author: Laslo Hunhold AuthorDate: Mon Oct 3 23:13:26 2022 +0200 Commit: Laslo Hunhold CommitDate: Mon Oct 3 23:13:26 2022 +0200 Convert GRAPHEME_STATE to uint_least16_t and remove it I was never quite happy with the fact that

[hackers] [libgrapheme] Add unit tests for all segmentation functions || Laslo Hunhold

2022-10-03 Thread git
commit a815be4b5de7f7df2da664049fdb04874d37016a Author: Laslo Hunhold AuthorDate: Mon Oct 3 21:18:52 2022 +0200 Commit: Laslo Hunhold CommitDate: Mon Oct 3 21:18:52 2022 +0200 Add unit tests for all segmentation functions Now all functions in the library are covered by

[hackers] [libgrapheme] Unify code paths in herodotus_read_codepoint() || Laslo Hunhold

2022-10-03 Thread git
commit 28815433e3595cba51a40c4a5e291da3a8746d78 Author: Laslo Hunhold AuthorDate: Mon Oct 3 21:14:52 2022 +0200 Commit: Laslo Hunhold CommitDate: Mon Oct 3 21:14:52 2022 +0200 Unify code paths in herodotus_read_codepoint() This saves redundancy. Signed-off-by:

[hackers] [libgrapheme] Set case-test-structs as const and use uppercase-hex-notation || Laslo Hunhold

2022-10-03 Thread git
commit 5ea8d87a9a0fb9c6dda827cc55d43c637cd4086d Author: Laslo Hunhold AuthorDate: Mon Oct 3 21:16:38 2022 +0200 Commit: Laslo Hunhold CommitDate: Mon Oct 3 21:16:38 2022 +0200 Set case-test-structs as const and use uppercase-hex-notation Signed-off-by: Laslo Hunhold diff

Re: [hackers] [lchat] use libgrapheme instead of libutf || Jan Klemkow

2022-10-02 Thread Jan Klemkow
Hi Laslo, On Sun, Oct 02, 2022 at 02:37:12AM +0200, Laslo Hunhold wrote: > On Sun, 2 Oct 2022 02:01:34 +0200 (CEST) > g...@suckless.org wrote: > > > commit dbc8751dc6c034967d2b3133a58a627834992e8c > > Author: Jan Klemkow > > AuthorDate: Sun Oct 2 00:59:19 2022 +0200 > > Commit: Jan

[hackers] [libgrapheme] Drop get_codepoint*() and set_codepoint*() functions || Laslo Hunhold

2022-10-02 Thread git
commit f70ea8c12ab5b7ad6f90f8860544779a43ce8a9e Author: Laslo Hunhold AuthorDate: Sun Oct 2 22:30:08 2022 +0200 Commit: Laslo Hunhold CommitDate: Sun Oct 2 22:30:58 2022 +0200 Drop get_codepoint*() and set_codepoint*() functions These are, now that all code has been

Re: [hackers] [libgrapheme][PATCH] fix manpage

2022-10-02 Thread Laslo Hunhold
On Sun, 2 Oct 2022 09:29:18 +0600 NRK wrote: Dear NRK, > - to_case: there's no `len` parameter. it should be `srclen` and > `dstlen`. > - is_case: `caselen` should be a pointer. > --- > > P.S: one more thing that caught my eye; the "next" manpages for the > codepoint versions states: > >

[hackers] [libgrapheme] Fix a few small errors in the manpages || Laslo Hunhold

2022-10-02 Thread git
commit 995e37182dc53da55dc4cf34868513610215c79e Author: Laslo Hunhold AuthorDate: Sun Oct 2 22:22:54 2022 +0200 Commit: Laslo Hunhold CommitDate: Sun Oct 2 22:22:54 2022 +0200 Fix a few small errors in the manpages Thanks to NRK for spotting most of these problems! In the

[hackers] [libgrapheme] Refactor sentence-functions with Proper (using Herodotus in the background) || Laslo Hunhold

2022-10-02 Thread git
commit a5b1b0c0c7bc1576b5893175b27585fa963f4433 Author: Laslo Hunhold AuthorDate: Sun Oct 2 22:05:11 2022 +0200 Commit: Laslo Hunhold CommitDate: Sun Oct 2 22:05:11 2022 +0200 Refactor sentence-functions with Proper (using Herodotus in the background) This refactor was a

[hackers] [libgrapheme] Refactor word-functions with Proper (using Herodotus in the background) || Laslo Hunhold

2022-10-02 Thread git
commit 52b0e29e02068d6a8123042ef901f73e37b2f38f Author: Laslo Hunhold AuthorDate: Sun Oct 2 21:17:03 2022 +0200 Commit: Laslo Hunhold CommitDate: Sun Oct 2 21:17:03 2022 +0200 Refactor word-functions with Proper (using Herodotus in the background) As promised, this leads to

[hackers] [libgrapheme] Refactor line-functions with Herodotus || Laslo Hunhold

2022-10-02 Thread git
commit a4d42053f13e8471ee3903522f964fc0a1d3161a Author: Laslo Hunhold AuthorDate: Sat Sep 24 12:26:19 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Sep 24 12:26:19 2022 +0200 Refactor line-functions with Herodotus Signed-off-by: Laslo Hunhold diff --git a/src/line.c

[hackers] [libgrapheme] Add "proper"-property-reader || Laslo Hunhold

2022-10-02 Thread git
commit b899fd685c50cbc61999296ce1e0a03a45e74f52 Author: Laslo Hunhold AuthorDate: Sun Oct 2 21:09:08 2022 +0200 Commit: Laslo Hunhold CommitDate: Sun Oct 2 21:09:08 2022 +0200 Add "proper"-property-reader The word- and sentence-segmentation algorithms make use of a

Re: [hackers] [ii] rename clean() to cleanup() || Hiltjo Posthuma

2022-10-02 Thread Hiltjo Posthuma
On Sun, Oct 02, 2022 at 01:38:16PM +0200, Petr Vaněk wrote: > On Sat, Oct 01, 2022 at 01:19:29PM +0200, g...@suckless.org wrote: > > commit b751e4f08ddaa56585407abebc0534d848cb4ba5 > > Author: Hiltjo Posthuma > > AuthorDate: Sat Oct 1 13:18:02 2022 +0200 > > Commit: Hiltjo Posthuma > >

Re: [hackers] [ii] rename clean() to cleanup() || Hiltjo Posthuma

2022-10-02 Thread Petr Vaněk
On Sat, Oct 01, 2022 at 01:19:29PM +0200, g...@suckless.org wrote: > commit b751e4f08ddaa56585407abebc0534d848cb4ba5 > Author: Hiltjo Posthuma > AuthorDate: Sat Oct 1 13:18:02 2022 +0200 > Commit: Hiltjo Posthuma > CommitDate: Sat Oct 1 13:18:02 2022 +0200 > > rename clean() to

[hackers] [libgrapheme][PATCH] fix manpage

2022-10-01 Thread NRK
- to_case: there's no `len` parameter. it should be `srclen` and `dstlen`. - is_case: `caselen` should be a pointer. --- P.S: one more thing that caught my eye; the "next" manpages for the codepoint versions states: If len is set to SIZE_MAX the string str is interpreted to be

[hackers] [lchat] README: update requirements to libgrapheme || Jan Klemkow

2022-10-01 Thread git
commit 441c734ba664e797e585697e65eb18cf4ebaf97a Author: Jan Klemkow AuthorDate: Sun Oct 2 03:57:59 2022 +0200 Commit: Jan Klemkow CommitDate: Sun Oct 2 03:57:59 2022 +0200 README: update requirements to libgrapheme diff --git a/README.md b/README.md index d3a815f..ca6554b 100644

[hackers] [lchat] slackline: fix reallocation memory issue || Petr Vaněk

2022-10-01 Thread git
commit d671b2273e2283df46dd940dc7ce6a1a3476f9eb Author: Petr Vaněk AuthorDate: Mon Sep 26 16:27:12 2022 +0200 Commit: Jan Klemkow CommitDate: Sun Oct 2 03:47:29 2022 +0200 slackline: fix reallocation memory issue It is necessary to update sl->ptr and sl->last pointers

[hackers] [lchat] use libgrapheme instead of libutf || Jan Klemkow

2022-10-01 Thread git
commit dbc8751dc6c034967d2b3133a58a627834992e8c Author: Jan Klemkow AuthorDate: Sun Oct 2 00:59:19 2022 +0200 Commit: Jan Klemkow CommitDate: Sun Oct 2 01:00:03 2022 +0200 use libgrapheme instead of libutf diff --git a/config.mk b/config.mk index 8315b62..15f86cc 100644 ---

[hackers] [dmenu] dmenu: use die() to print the usage message || Tom Schwindl

2022-10-01 Thread git
commit 7ec32fe4944d4f7137cf2a23366324ffe0f10a70 Author: Tom Schwindl AuthorDate: Mon Sep 26 09:24:15 2022 + Commit: Hiltjo Posthuma CommitDate: Sat Oct 1 13:20:40 2022 +0200 dmenu: use die() to print the usage message diff --git a/dmenu.c b/dmenu.c index 818313a..7cf253b 100644

[hackers] [ii] rename clean() to cleanup() || Hiltjo Posthuma

2022-10-01 Thread git
commit b751e4f08ddaa56585407abebc0534d848cb4ba5 Author: Hiltjo Posthuma AuthorDate: Sat Oct 1 13:18:02 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Sat Oct 1 13:18:02 2022 +0200 rename clean() to cleanup() diff --git a/ii.c b/ii.c index a7dfb1f..c402a87 100644 --- a/ii.c +++

[hackers] [ii] Always clean before exit || Petr Vaněk

2022-10-01 Thread git
commit c25c3793466e2516395e40e2061134ffe553cfe8 Author: Petr Vaněk AuthorDate: Thu Sep 29 10:40:48 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Sat Oct 1 13:17:34 2022 +0200 Always clean before exit This improves situations when ii exits unexpectedly, due to a ping

[hackers] [ii][PATCH] Always clean before exit

2022-09-29 Thread Petr Vaněk
This improves situations when ii exits unexpectedly, due to a ping timeout or closed remote connection, for example. If this happens, all "in" FIFOs are removed before exit in similar fashion to regular exit issued with "/q" command. --- ii.c | 27 +++ 1 file changed, 19

[hackers] [dmenu] [PATCH] dmenu: use die() to print the usage message

2022-09-26 Thread Tom Schwindl
--- dmenu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dmenu.c b/dmenu.c index 571bc3558014..999f71fa91a1 100644 --- a/dmenu.c +++ b/dmenu.c @@ -710,9 +710,8 @@ setup(void) static void usage(void) { - fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn

[hackers] [libgrapheme] Refactor character-functions with Herodotus || Laslo Hunhold

2022-09-24 Thread git
commit 65785f699be45dd77bdcbfc1d3aded39151f3205 Author: Laslo Hunhold AuthorDate: Sat Sep 24 11:45:20 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Sep 24 11:45:20 2022 +0200 Refactor character-functions with Herodotus This also unifies the code and drops a lot of

[hackers] [xssstate] config.mk: Add LIBDIR || orbea

2022-09-24 Thread git
commit 5d8e9b49ce2970f786f1e5aa12bbaae83900453f Author: orbea AuthorDate: Fri Sep 23 21:17:01 2022 -0700 Commit: Christoph Lohmann <2...@r-36.net> CommitDate: Sat Sep 24 10:56:12 2022 +0200 config.mk: Add LIBDIR Signed-off-by: Christoph Lohmann <2...@r-36.net> diff --git

[hackers] [libgrapheme] Update README || Laslo Hunhold

2022-09-24 Thread git
commit b13acfd6cd5114fcddbffaf9855664a95f966403 Author: Laslo Hunhold AuthorDate: Sat Sep 24 10:38:29 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Sep 24 10:38:29 2022 +0200 Update README Signed-off-by: Laslo Hunhold diff --git a/README b/README index 4e6ee44..d1cf1f9

[hackers] [libgrapheme] Clarify a comment in gen/case.c || Laslo Hunhold

2022-09-24 Thread git
commit bc1dc28c09ce845291c51041b45594fef78e4eb4 Author: Laslo Hunhold AuthorDate: Sat Sep 24 10:37:21 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Sep 24 10:37:21 2022 +0200 Clarify a comment in gen/case.c Signed-off-by: Laslo Hunhold diff --git a/gen/case.c

[hackers] [libgrapheme] Refactor case-checking-functions with Herodotus and add unit tests || Laslo Hunhold

2022-09-24 Thread git
commit 5dec22a7143e1105f25c7a7626fa166d882367d0 Author: Laslo Hunhold AuthorDate: Sat Sep 24 10:36:15 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Sep 24 10:36:15 2022 +0200 Refactor case-checking-functions with Herodotus and add unit tests Additionally, expand the unit

[hackers] [libgrapheme] Compile the library in freestanding mode || Laslo Hunhold

2022-09-23 Thread git
commit 8a7e2ee85f0a2824e48e85e57534c5b18113cf07 Author: Laslo Hunhold AuthorDate: Sat Sep 24 01:54:52 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Sep 24 01:54:52 2022 +0200 Compile the library in freestanding mode Looking closely, we never explicitly depend on the

[hackers] [libgrapheme] Declare test-arrays as static || Laslo Hunhold

2022-09-23 Thread git
commit 9f15d7eb0c9cf216f069d6972c58520013b80acb Author: Laslo Hunhold AuthorDate: Thu Sep 22 00:16:56 2022 +0200 Commit: Laslo Hunhold CommitDate: Thu Sep 22 00:16:56 2022 +0200 Declare test-arrays as static Signed-off-by: Laslo Hunhold diff --git a/test/case.c

Re: [hackers] [libgrapheme] Update to Unicode 15.0.0 || Laslo Hunhold

2022-09-22 Thread Tom Schwindl
Hi Laslo, I think the README has to be updated, too. It still states that libgrapheme conforms to Unicode 14.0.0. -- Best Regards, Tom Schwindl

[hackers] [libgrapheme] Remove autistic screeching || Laslo Hunhold

2022-09-21 Thread git
commit 9c926f112553481fae101b692f8add2998aeeaaf Author: Laslo Hunhold AuthorDate: Wed Sep 21 20:25:41 2022 +0200 Commit: Laslo Hunhold CommitDate: Wed Sep 21 20:25:41 2022 +0200 Remove autistic screeching Signed-off-by: Laslo Hunhold diff --git a/test/case.c b/test/case.c

[hackers] [libgrapheme] Add case-conversion-unit-tests || Laslo Hunhold

2022-09-21 Thread git
commit e63bcc42010176b300feea6a7412f814a6cc4191 Author: Laslo Hunhold AuthorDate: Wed Sep 21 20:18:12 2022 +0200 Commit: Laslo Hunhold CommitDate: Wed Sep 21 20:18:12 2022 +0200 Add case-conversion-unit-tests To give even more assurance and catch any possible future

[hackers] [libgrapheme] Refactor case-conversion-functions with Herodotus || Laslo Hunhold

2022-09-21 Thread git
commit 5332f7ee034081618617c2b0785733ccc9ec8753 Author: Laslo Hunhold AuthorDate: Wed Sep 21 20:16:00 2022 +0200 Commit: Laslo Hunhold CommitDate: Wed Sep 21 20:16:00 2022 +0200 Refactor case-conversion-functions with Herodotus The readability of the code is greatly

[hackers] [libgrapheme] Add helper structure for reading from and writing into buffers || Laslo Hunhold

2022-09-21 Thread git
commit 563eb65bfbaa4f27c77d73ae81b51882c916993d Author: Laslo Hunhold AuthorDate: Wed Sep 21 20:11:55 2022 +0200 Commit: Laslo Hunhold CommitDate: Wed Sep 21 20:11:55 2022 +0200 Add helper structure for reading from and writing into buffers The logic behind the input and

[hackers] Re: [dwm][PATCH v2] Use sigaction(SA_NOCLDWAIT) for SIGCHLD handling

2022-09-20 Thread Chris Down
Hey Hiltjo, Chris Down writes: signal() semantics are pretty unclearly specified. For example, depending on OS kernel and libc, the handler may be returned to SIG_DFL (hence the inner call to readd the signal handler). Moving to sigaction() means the behaviour is consistently defined. Using

[hackers] [lchat] lchat: Do not implement bell_match() twice, use `util.h' instead || Tom Schwindl

2022-09-20 Thread git
commit 6ac420add96b2b3df6364d2c0d170ae8b0d41af5 Author: Tom Schwindl AuthorDate: Tue Sep 6 17:30:39 2022 +0200 Commit: Jan Klemkow CommitDate: Tue Sep 20 17:12:54 2022 +0200 lchat: Do not implement bell_match() twice, use `util.h' instead diff --git a/Makefile b/Makefile index

[hackers] [lchat] slackline: implement ctrl+w and ctrl+l || Tom Schwindl

2022-09-20 Thread git
commit aa7afafc6710c68811bbc33d8b781edfa8c17109 Author: Tom Schwindl AuthorDate: Fri Sep 9 21:40:55 2022 +0200 Commit: Jan Klemkow CommitDate: Tue Sep 20 17:13:05 2022 +0200 slackline: implement ctrl+w and ctrl+l ctrl+w is part of the canonical line disciplines on most

[hackers] [lchat] move the ctrl+l handling from slackline to lchat || Tom Schwindl

2022-09-20 Thread git
commit d76e1a740862f8ba5da876910876abb0a50a Author: Tom Schwindl AuthorDate: Tue Sep 20 13:56:38 2022 +0200 Commit: Jan Klemkow CommitDate: Tue Sep 20 17:13:11 2022 +0200 move the ctrl+l handling from slackline to lchat As Jan kindly pointed out to me, slackline is

[hackers] [lchat] Replace the non-standard err(3) with our own die() function || Tom Schwindl

2022-09-20 Thread git
commit 0c1a66c482d9ffa4e0e3f8fdb60aa1a02755da37 Author: Tom Schwindl AuthorDate: Tue Sep 6 22:41:08 2022 +0200 Commit: Jan Klemkow CommitDate: Tue Sep 20 17:13:00 2022 +0200 Replace the non-standard err(3) with our own die() function `err.h', which includes err(3) and

[hackers] [lchat] lchat: flush earlier to make sure the initial prompt is displayed || Tom Schwindl

2022-09-20 Thread git
commit 7effd7e7013dd385bf4cd6d4fbaea28475ab4886 Author: Tom Schwindl AuthorDate: Mon Aug 22 22:28:37 2022 +0200 Commit: Jan Klemkow CommitDate: Tue Sep 20 17:12:45 2022 +0200 lchat: flush earlier to make sure the initial prompt is displayed The first fflush(3) occurs when

[hackers] [lchat] Makefile: provides an uninstall target || shirenn

2022-09-20 Thread git
commit 0408127d9db566364530dc8690081a9c3d133bca Author: shirenn AuthorDate: Fri Jan 29 21:47:48 2021 +0100 Commit: Jan Klemkow CommitDate: Sun Jan 31 11:12:46 2021 +0100 Makefile: provides an uninstall target Signed-off-by: shirenn diff --git a/Makefile b/Makefile index

[hackers] [libsl] remove workaround for a crash with color emojis on some systems, now fixed in libXft 2.3.5 || Hiltjo Posthuma

2022-09-17 Thread git
commit b77eca5e5707d6c59647eb2525610d00c0228767 Author: Hiltjo Posthuma AuthorDate: Fri Sep 16 23:07:01 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Sat Sep 17 15:32:55 2022 +0200 remove workaround for a crash with color emojis on some systems, now fixed in libXft 2.3.5

[hackers] [dwm] remove workaround for a crash with color emojis on some systems, now fixed in libXft 2.3.5 || Hiltjo Posthuma

2022-09-17 Thread git
commit 970f37697358574e127019eb0ee2f5725ec05ce0 Author: Hiltjo Posthuma AuthorDate: Fri Sep 16 23:06:47 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Sat Sep 17 15:32:41 2022 +0200 remove workaround for a crash with color emojis on some systems, now fixed in libXft 2.3.5

[hackers] [dmenu] remove workaround for a crash with color emojis on some systems, now fixed in libXft 2.3.5 || Hiltjo Posthuma

2022-09-17 Thread git
commit fce06f437dcec646ee0a2728fe695f3084cc6ccb Author: Hiltjo Posthuma AuthorDate: Fri Sep 16 23:05:07 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Sat Sep 17 15:32:26 2022 +0200 remove workaround for a crash with color emojis on some systems, now fixed in libXft 2.3.5

[hackers] [st] FAQ: document the color emojis crash issue which affected some systems is fixed || Hiltjo Posthuma

2022-09-17 Thread git
commit 00085199039ee63acc7b1ecb7e3774a9c3552b2a Author: Hiltjo Posthuma AuthorDate: Fri Sep 16 23:07:09 2022 +0200 Commit: Hiltjo Posthuma CommitDate: Fri Sep 16 23:07:09 2022 +0200 FAQ: document the color emojis crash issue which affected some systems is fixed It is fixed

[hackers] [libgrapheme] Sort prototypes in grapheme.h alphabetically || Laslo Hunhold

2022-09-16 Thread git
commit 6d0595242a027c1fcb06136e632f6d727388c4ec Author: Laslo Hunhold AuthorDate: Sat Sep 17 01:13:59 2022 +0200 Commit: Laslo Hunhold CommitDate: Sat Sep 17 01:13:59 2022 +0200 Sort prototypes in grapheme.h alphabetically Signed-off-by: Laslo Hunhold diff --git

Re: [hackers] [PATCH] [st] FAQ: libXft now supports BGRA glyphs

2022-09-15 Thread Tom Schwindl
Hi, On Thu Sep 15, 2022 at 3:45 PM CEST, NRK wrote: > On Thu, Sep 15, 2022 at 01:31:02PM +, Tom Schwindl wrote: > > -## BadLength X error in Xft when trying to render emoji > > - > > -Xft makes st crash when rendering color emojis with the following error: > > - > > -"X Error of failed

Re: [hackers] [PATCH] [st] FAQ: libXft now supports BGRA glyphs

2022-09-15 Thread NRK
On Thu, Sep 15, 2022 at 01:31:02PM +, Tom Schwindl wrote: > -## BadLength X error in Xft when trying to render emoji > - > -Xft makes st crash when rendering color emojis with the following error: > - > -"X Error of failed request: BadLength (poly request too large or internal > Xlib length

<    3   4   5   6   7   8   9   10   11   12   >