Re: [PATCH] Fix string prefix predicate in breadline egg

2024-04-27 Thread Vasilij Schneidermann
Hello siiky, > In breadline's Scheme completion code, a length argument is given to > substring=? that may be greater than the candidate string. This was > previously unnoticed because substring=? did not check bounds; in the > latest CHICKEN from master it results in an error. thank you for the

[PATCH] #1779 reverse-list->string not exported by srfi-13 egg

2021-08-29 Thread Vasilij Schneidermann
Hello everyone, Here's a trivial patch to fix #1779. Vasilij From d532f494346f010174e5bbb204aacacc9da16ebe Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Sun, 29 Aug 2021 21:14:02 +0200 Subject: [PATCH] Add missing reverse-list->string export --- srfi-13/0.3.1/srfi-13.scm | 1 +

[PATCH] Small chicken.h fix to make taglib compile on MinGW

2021-04-19 Thread Vasilij Schneidermann
50 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Mon, 19 Apr 2021 19:11:20 +0200 Subject: [PATCH] Cast the alloca result to make C++ on MinGW happy --- chicken.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chicken.h b/chicken.h index 0b9c2613..7e51a

Re: Default file creation mode for core/scsh-process sets executable bit

2020-05-13 Thread Vasilij Schneidermann
Hello Evan, > I have created a change request and patch for this here: > > https://bugs.call-cc.org/ticket/1698 I've added another patch for scsh-process there which resolves the issue for me. Vasilij signature.asc Description: PGP signature

Conversion from invalid to valid utf8 strings

2020-05-09 Thread Vasilij Schneidermann
Hello, I'm currently writing a Git repository viewer and stumbled upon this wonderful repository with challenging file names [1]. After writing some code to correctly encode links and labels I've realized that encoding UTF-8 strings will incorrectly escape bytes inside sequences that correspond

Default file creation mode for core/scsh-process sets executable bit

2020-05-07 Thread Vasilij Schneidermann
Hello, I've noticed that when using process redirection in the scsh-process egg, they're always marked as executable. Observe: ^_^ csi -R scsh-process -e '(run (ls -l) (> ls.txt))' ^_^ ls -l ls.txt -rwxr--r-- 1 wasa wasa 515 May 7 16:34 ls.txt I've checked the output of `umask`

Re: Exposing subsecond precision in current-seconds

2020-04-29 Thread Vasilij Schneidermann
On 04/29/20 at 06:38pm, Evan Hanson wrote: > On 2020-04-27 21:26, felix.winkelm...@bevuta.com wrote: > > > - Add a new procedure in `(chicken time)` or `(chicken time posix)` that > > > gives > > > you both seconds and nanoseconds, be it as values, list, vector, ... > > > Same > > > Windows

Re: Exposing subsecond precision in current-seconds

2020-04-27 Thread Vasilij Schneidermann
Hello again, Sorry, I meant to write microseconds. For nanoseconds precision you'd need to use `clock_gettime` which is harder to emulate on Windows than `gettimeofday`. I also forgot including this reference:

Exposing subsecond precision in current-seconds

2020-04-27 Thread Vasilij Schneidermann
Hello, Today on #chicken I've been reminded that `current-seconds` is unsuitable for obtaining timestamps with millisecond precision. Then there is `current-milliseconds` which returns milliseconds since the process / OS start. One might be tempted to combine both (as SRFI-19) does, but this is

Re: [Chicken-hackers] [PATCH] Improve srfi-13 performance quite a bit by inlining optarg handling

2019-09-28 Thread Vasilij Schneidermann
Hello Matt, > NOTE: Aside from the effort in porting the code there are still a few > dependencies on eggs that have not been ported. Triming dependencies > may eliminate some of these. A quick crude scan of use statements gave > me this: [...] I've ported the hostinfo egg and sent a patch to

Re: [Chicken-hackers] possible bug in simple-sha1

2019-06-03 Thread Vasilij Schneidermann
Hello Kristian, I'd rather not reuse that file as is because who knows what other edits they made. Another thing to consider is that we most certainly made at least one of our own adjustments, like using the C_LITTLE_ENDIAN feature to detect the endianness instead of BYTE_ORDER. For this reason

Re: [Chicken-hackers] possible bug in simple-sha1

2019-06-02 Thread Vasilij Schneidermann
2001 From: Vasilij Schneidermann Date: Sun, 2 Jun 2019 18:08:16 +0200 Subject: [PATCH] Increment counter correctly for large len values --- sha1-base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sha1-base.c b/sha1-base.c index 545ac04..ca64e8c 100644 --- a/sha1-base.c

Re: [Chicken-hackers] Some questions about CHICKEN 5 eggs and modules

2018-08-30 Thread Vasilij Schneidermann
> So the basic problem is to install multiple sets of files, in separate > steps? I think for "scheme-include" components this should be possible, > but (as far as I can see) this is not currently possible for "c-include" > components (but could be added). It's for more than that. SPOCK for

Re: [Chicken-hackers] C lost -D on chicken-install

2018-08-20 Thread Vasilij Schneidermann
Hey Peter, > I didn't even know the old chicken-install even had that. What do you > use it for? The opengl-glew egg uses it to conditionally build with GLES support. There should be more eggs, but it's tricky to tell which. > It doesn't seem very discoverable to me (for users) [...] Agreed,

Re: [Chicken-hackers] csc-options in .eg file

2018-08-17 Thread Vasilij Schneidermann
Hey Jörg > Any reasons this is not a good idea (TM). The string syntax allows things such as easily specifying several libraries to link. Compare ("-L" "-lfoo -lbar") with (-L -lfoo -lbar). The latter is an error as it's interpreted as three separate arguments and the -l invocation syntax has

Re: [Chicken-hackers] [PATCH] Introduce XDG directories

2018-08-09 Thread Vasilij Schneidermann
Hello Kooda, > This patch is about using the XDG spec for configuration and cache > directories (XDG_CONFIG_HOME and XDG_CACHE_HOME > environment variables). thanks for working on this ticket! Patch looks good, I believe the only improvements possible are about handling errors (such as

Re: [Chicken-hackers] )PATCH( Lookup program argument to feathers properly and show error on failure

2018-05-02 Thread Vasilij Schneidermann
Hello all, I've tested the patch with chicken-4 and it works as described for me, both for programs found and not found. Vasilij ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers