fix scm_to_latin1_stringn for substrings
authorAndy Wingo <wingo@pobox.com>
Sat, 10 Sep 2011 18:38:25 +0000 (11:38 -0700)
committerAndy Wingo <wingo@pobox.com>
Sat, 10 Sep 2011 18:38:25 +0000 (11:38 -0700)
commitfe1336405062c69ff08fd7ad0d98c3f2aca7766f
tree7626d7f85770ca7b8ada6ef266243beab4e49f67
parentcb7bcfca3520a147881e4b7f052b68b88a740bf1
fix scm_to_latin1_stringn for substrings

* libguile/strings.c (scm_to_latin1_stringn): Fix for substrings.

* test-suite/standalone/Makefile.am:
* test-suite/standalone/test-scm-to-latin1-string.c: Add test case.

  Thanks to David Hansen for the bug report and test case, and Stefan
  Israelsson Tampe for the fix.
libguile/strings.c
test-suite/standalone/Makefile.am
test-suite/standalone/test-scm-to-latin1-string.c [new file with mode: 0644]