Guile and ucontext

2009-05-13 Thread Fredrik Tolf
Hi list, I'd really like to use Guile in a program I'm writing, but I'm having a problem in that I'm using the ucontext calls rather heavily to run a great amount of light-weight threads (in only one pthread, that is), and it seems that Guile doesn't exactly thrive in that environment. >From what

Re: Uploading Word documents, PDFs, PNG files etc

2009-05-13 Thread Keith Wright
> From: Linas Vepstas > Cc: guile-user@gnu.org > > 2009/5/13 Sebastian Tennant : > > > Restricting regexps to actual text is fine... until > > you need to grep binary data, or, as in this case, > > a combination of text and binary data. > > > in cgi.scm that extracted the uploaded (possibly > >

Re: Uploading Word documents, PDFs, PNG files etc

2009-05-13 Thread Linas Vepstas
2009/5/13 Sebastian Tennant : > Restricting regexps to actual text is fine... until you need to grep > binary data, or, as in this case, a combination of text and binary data. Last I looked, standard c-library posix/gnu/perl/java regex only worked on strings, not on binary data. You'll have troub

Re: Uploading Word documents, PDFs, PNG files etc

2009-05-13 Thread Sebastian Tennant
Quoth l...@gnu.org (Ludovic Courtès): > Hello, > > Sebastian Tennant writes: > >> (info "(guile-1.8)Regexp Functions") >> >> "Zero bytes (`#\nul') cannot be used in regex patterns or input >> strings, since the underlying C functions treat that as the end of >> string. If there's a zero byte

Re: Uploading Word documents, PDFs, PNG files etc

2009-05-13 Thread Sebastian Tennant
Quoth l...@gnu.org (Ludovic Courtès): > Hello, > > Sebastian Tennant writes: > >> (info "(guile-1.8)Regexp Functions") >> >> "Zero bytes (`#\nul') cannot be used in regex patterns or input >> strings, since the underlying C functions treat that as the end of >> string. If there's a zero byte

Re: Uploading Word documents, PDFs, PNG files etc

2009-05-13 Thread Ludovic Courtès
Hello, Sebastian Tennant writes: > (info "(guile-1.8)Regexp Functions") > > "Zero bytes (`#\nul') cannot be used in regex patterns or input > strings, since the underlying C functions treat that as the end of > string. If there's a zero byte an error is thrown." I think it makes sense to

Re: Uploading Word documents, PDFs, PNG files etc

2009-05-13 Thread Sebastian Tennant
Quoth Thien-Thi Nguyen : > Perhaps you can convert the string in variable `upload' to a uniform > vector and write it out using `uniform-vector-write'. It may be the > case, too, that the string can be passed to `uniform-vector-write' > directly I've isolated the problem. (info "(guile-1.8)Regex