Han-Wen Nienhuys <[EMAIL PROTECTED]> 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 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel