guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug with read-string!/partial


From: Marius Vollmer
Subject: Re: bug with read-string!/partial
Date: Wed, 07 Dec 2005 00:14:14 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Han-Wen Nienhuys <address@hidden> writes:

> Hi,
>
> what's the proper way to use read-string!/partial ?
>
> If I read a file with fewer bytes than the arg of read-string!/partial,
> I get problems down the line [with scm_to_locale_stringn]

Do you pass the right length to scm_to_locale_stringn, i.e, the return
value of read-string!/partial?

Also, maybe there really are #\nul characters in the file and the
error message from scm_to_locale_stringn is entirely deserved.

> In addition, I this error message isn't printed properly, but I get
>
>    Converting to PNG...throw from within critical section.
>    Geannuleerd
>    muurbloem:~/src/lilypond$

This message means that SCM_CRITICAL_SECTION_START/END is used
improperly.  There are likely some improper uses in Guile itself (and
this issue is what is holding off the 1.8 release at the moment...),
so it would be good to know exactly what instance of
SCM_CRITICAL_SECTION_START/END is responsible for your abort.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]