diff options
Diffstat (limited to 'doc/ref/api-io.texi')
-rw-r--r-- | doc/ref/api-io.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi index 24c2706df..de3684c31 100644 --- a/doc/ref/api-io.texi +++ b/doc/ref/api-io.texi @@ -166,6 +166,21 @@ returned. New ports will have this default behavior when they are created. @end deffn +@deffn {Scheme Variable} %default-port-conversion-strategy +The fluid that defines the conversion strategy for newly created ports, +and for other conversion routines such as @code{scm_to_stringn}, +@code{scm_from_stringn}, @code{string->pointer}, and +@code{pointer->string}. + +Its value must be one of the symbols described above, with the same +semantics: @code{'error}, @code{'substitute}, or @code{'escape}. + +When Guile starts, its value is @code{'substitute}. + +Note that @code{(set-port-conversion-strategy! #f @var{sym})} is +equivalent to @code{(fluid-set! %default-port-conversion-strategy +@var{sym})}. +@end deffn @node Reading |