bug#20209: GUILE 2.0.11: crash in set_port_filename_x for bytevector ports

2015-03-26 Thread David Kastrup
The following code #include int main() { scm_init_guile (); SCM str = scm_c_make_bytevector (0); SCM port = scm_open_bytevector_input_port (str, SCM_UNDEFINED); scm_set_port_filename_x (port, scm_from_locale_string ("/usr/local/tmp/lilypond/ly/init.ly")); return 0; } crashes with the

bug#20200: GUILE 2.0.11: open-bytevector-input-port fails to open in binary mode

2015-03-26 Thread Mark H Weaver
David Kastrup writes: > Run the following code in an UTF-8 capable locale: > > (setlocale LC_ALL "") > (use-modules (rnrs io ports) (rnrs bytevectors) (ice-9 format)) > (let ((p (open-bytevector-input-port > (u8-list->bytevector '(#xc3 #x9f #xc3 #X9f) > (format #t "~a ~a\n" (port-en

bug#20209: GUILE 2.0.11: crash in set_port_filename_x for bytevector ports

2015-03-26 Thread Mark H Weaver
David Kastrup writes: > The following code > > > #include > > int main() > { > scm_init_guile (); > SCM str = scm_c_make_bytevector (0); > SCM port = scm_open_bytevector_input_port (str, SCM_UNDEFINED); > scm_set_port_filename_x (port, scm_from_locale_string > ("/usr/local/tmp/lilypond/