summaryrefslogtreecommitdiff
path: root/doc/ref/api-procedures.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-03-18 20:23:12 +0100
committerLudovic Courtès <ludo@gnu.org>2010-03-18 20:41:03 +0100
commitef7e4ba373fbd68ea87c4ba1541a58b38bec12b3 (patch)
treeda8fb979be5da14ba463aeb2db990dfbb8cadee2 /doc/ref/api-procedures.texi
parentf4c79b3c08b4b16f504a049b2ef14a238e94508f (diff)
downloadguile-ef7e4ba373fbd68ea87c4ba1541a58b38bec12b3.tar.gz
Improve encoding error reporting.
* libguile/strings.c (scm_encoding_error): Change arguments to convey more information. Raise the error with `scm_throw ()', passing all the information to the handler. (scm_from_stringn, scm_to_stringn): Update accordingly. * test-suite/tests/ports.test ("string ports")["wrong encoding"]: Check the arguments passed to the `throw' handler. * test-suite/tests/r6rs-ports.test ("7.2.11 Binary Output")["put-bytevector with wrong-encoding string port"]: Likewise.
Diffstat (limited to 'doc/ref/api-procedures.texi')
0 files changed, 0 insertions, 0 deletions