[hackers] [slock][PATCH] Reset color to INIT on Escape key press

2016-04-03 Thread Thomas
This is so people who have the INIT color set to black but the FAILURE color set to something else can still have their monitor black out after failing to unlock, without having to unlock and lock again. Also makes sense because pushing Esc isn't really a failure, but a purposefully aborted unlock

Re:Re: [hackers] [dmenu][PATCH] history navigation

2016-04-03 Thread crispyf...@163.com
Thanks, I'll do it. -phi At 2016-04-04 02:59:44, "Anselm R Garbe" wrote: >On 3 April 2016 at 05:35, crispyf...@163.com wrote: >> This patch provides the ability for history navigation similar to that of >> bash. Press alt+p for the previous history and alt+n for the next. Set the >> maximum

Re: [hackers] [sbase][PATCH] grep: remove = flag from readme

2016-04-03 Thread Mattias Andrée
It works on musl. On Sun, 3 Apr 2016 14:59:37 -0700 Eric Pruitt wrote: > On Sun, Apr 03, 2016 at 11:57:25PM +0200, Mattias Andrée > wrote: > > > On Sun, Apr 03, 2016 at 11:50:08PM +0200, Mattias > > > Andrée wrote: > > > > That works with musl but not glibc. > > > > > > If you use 'setlocale

Re: [hackers] [sbase][PATCH] grep: remove = flag from readme

2016-04-03 Thread Eric Pruitt
On Sun, Apr 03, 2016 at 11:57:25PM +0200, Mattias Andrée wrote: > > On Sun, Apr 03, 2016 at 11:50:08PM +0200, Mattias Andrée > > wrote: > > > That works with musl but not glibc. > > > > If you use 'setlocale(LC_ALL, "")' with GCC, grep behaves > > as expected: > > I assume you mean glibc. Does that

Re: [hackers] [sbase][PATCH] grep: remove = flag from readme

2016-04-03 Thread Mattias Andrée
On Sun, 3 Apr 2016 14:55:35 -0700 Eric Pruitt wrote: > On Sun, Apr 03, 2016 at 11:50:08PM +0200, Mattias Andrée > wrote: > > That works with musl but not glibc. > > If you use 'setlocale(LC_ALL, "")' with GCC, grep behaves > as expected: I assume you mean glibc. Does that work on musl too? >

Re: [hackers] [sbase][PATCH] grep: remove = flag from readme

2016-04-03 Thread Eric Pruitt
On Sun, Apr 03, 2016 at 11:50:08PM +0200, Mattias Andrée wrote: > That works with musl but not glibc. If you use 'setlocale(LC_ALL, "")' with GCC, grep behaves as expected: sbase$ echo äö | ./grep '[å]' (1) sbase$ echo å | ./grep '[å]' å Eric

Re: [hackers] [sbase][PATCH] grep: remove = flag from readme

2016-04-03 Thread Mattias Andrée
That works with musl but not glibc. On Sun, 3 Apr 2016 23:39:38 +0200 FRIGN wrote: > On Sun, 3 Apr 2016 23:35:21 +0200 > Mattias Andrée wrote: > > Hey Mattias, > > > Perhaps it could be noted. But it fails > > with both musl and glibc. I think we need new > > regex engine, perhaps adapted fro

Re: [hackers] [sbase][PATCH] grep: remove = flag from readme

2016-04-03 Thread FRIGN
On Sun, 3 Apr 2016 23:35:21 +0200 Mattias Andrée wrote: Hey Mattias, > Perhaps it could be noted. But it fails > with both musl and glibc. I think we need new > regex engine, perhaps adapted from musl, > that supports NUL bytes and UTF-8 transparently. you could also try a setlocale(LC

Re: [hackers] [sbase][PATCH] grep: add -r

2016-04-03 Thread Mattias Andrée
On Sun, 3 Apr 2016 22:31:30 +0200 FRIGN wrote: > On Wed, 30 Mar 2016 05:23:08 +0200 > Mattias Andrée wrote: > > > Unlike your usual grep -r, this implementation > > uses breadth-first search. It usually finds > > makes it find what you are looking for faster. > > Try working with recurse() i

Re: [hackers] [sbase][PATCH] grep: remove = flag from readme

2016-04-03 Thread Mattias Andrée
Perhaps it could be noted. But it fails with both musl and glibc. I think we need new regex engine, perhaps adapted from musl, that supports NUL bytes and UTF-8 transparently. maandree On Sun, 3 Apr 2016 22:30:45 +0200 FRIGN wrote: > On Wed, 30 Mar 2016 19:01:16 +0200 > Mattias Andrée wrote: >

Re: [hackers] [sbase][PATCH] grep: add -r

2016-04-03 Thread FRIGN
On Wed, 30 Mar 2016 05:23:08 +0200 Mattias Andrée wrote: > Unlike your usual grep -r, this implementation > uses breadth-first search. It usually finds > makes it find what you are looking for faster. Try working with recurse() in libutil. Cheers FRIGN -- FRIGN

Re: [hackers] [sbase][PATCH] grep: remove = flag from readme

2016-04-03 Thread FRIGN
On Wed, 30 Mar 2016 19:01:16 +0200 Mattias Andrée wrote: Hey Mattias, > $ echo äö | ./grep [å] > äö > > This is not want one expects from > a program that supports UTF-8. I assume the proper way here would be to add a note on the manpage that this highly depends on the libc you are using (

[hackers] [farbfeld] Remove line-breaks from Makefile || FRIGN

2016-04-03 Thread git
commit d8796e33f347b92a6526a1f3e6da8f5ddae7391b Author: FRIGN AuthorDate: Sun Apr 3 22:17:33 2016 +0200 Commit: FRIGN CommitDate: Sun Apr 3 22:17:33 2016 +0200 Remove line-breaks from Makefile Even though I like line-length limits, it imposed a useless limitation on the

[hackers] [farbfeld] Makefile improvements || Hiltjo Posthuma

2016-04-03 Thread git
commit 47a5f38ce9d44b5c3c0dad9e7824c8e2156a203d Author: Hiltjo Posthuma AuthorDate: Sun Apr 3 21:44:20 2016 +0200 Commit: FRIGN CommitDate: Sun Apr 3 22:07:12 2016 +0200 Makefile improvements - be verbose by default: don't hide the executed commands. - no need to make cl

Re: [hackers] [dmenu][PATCH] history navigation

2016-04-03 Thread Anselm R Garbe
On 3 April 2016 at 05:35, crispyf...@163.com wrote: > This patch provides the ability for history navigation similar to that of > bash. Press alt+p for the previous history and alt+n for the next. Set the > maximum number of histories with a new variable 'maxhist' in config.h. By > default, it on

[hackers] [farbfeld] don't link against unneeded libs || Hiltjo Posthuma

2016-04-03 Thread git
commit 7f295f8c100a504c305d537bd3fde6492f15ef7a Author: Hiltjo Posthuma AuthorDate: Thu Mar 24 19:09:41 2016 +0100 Commit: FRIGN CommitDate: Sun Apr 3 20:39:13 2016 +0200 don't link against unneeded libs - jpg2ff requires libjpeg - ff2png, png2ff requires libpng (and lib

[hackers] [farbfeld] fix bugs introduced by refactor f0a4ce113d0e9dc50110a0ad9e98433d05aa2307 || Hiltjo Posthuma

2016-04-03 Thread git
commit 264979bf52261cb461212be8978c2a4697aa2e80 Author: Hiltjo Posthuma AuthorDate: Thu Mar 24 18:45:57 2016 +0100 Commit: FRIGN CommitDate: Sun Apr 3 20:39:13 2016 +0200 fix bugs introduced by refactor f0a4ce113d0e9dc50110a0ad9e98433d05aa2307 diff --git a/ff2ppm.c b/ff2ppm.c index

[hackers] [farbfeld] add ff2jpg tool, convert farbfeld images to RGB JPEG || Hiltjo Posthuma

2016-04-03 Thread git
commit 34e9cba51f5149da0670b32101e23b4d76e20d61 Author: Hiltjo Posthuma AuthorDate: Thu Mar 24 19:17:48 2016 +0100 Commit: FRIGN CommitDate: Sun Apr 3 20:39:13 2016 +0200 add ff2jpg tool, convert farbfeld images to RGB JPEG diff --git a/LICENSE b/LICENSE index 04a34f5..fdc6d84 10064