unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* bug with read-string!/partial
@ 2005-08-22 21:14 Han-Wen Nienhuys
  2005-08-22 21:17 ` Han-Wen Nienhuys
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Han-Wen Nienhuys @ 2005-08-22 21:14 UTC (permalink / raw)



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, when

   char *
   scm_to_locale_stringn (SCM str, size_t *lenp)

checks whether

  memcpy (res, scm_i_string_chars (str), len);
   if (lenp == NULL)
     {
       res[len] = '\0';
       if (strlen (res) != len)
	{
	  free (res);
	  scm_misc_error (NULL,
			  "string contains #\\nul character: ~S",
			  scm_list_1 (str));
	}
     }

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$


-- 
  Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-12-06 22:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-22 21:14 bug with read-string!/partial Han-Wen Nienhuys
2005-08-22 21:17 ` Han-Wen Nienhuys
2005-08-23  0:31   ` Kevin Ryde
2005-08-23  0:34 ` Kevin Ryde
2005-12-06 22:14 ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).