port-encoding returns #f if port encoding not set
authorAndy Wingo <wingo@pobox.com>
Sat, 9 Jan 2010 18:21:09 +0000 (19:21 +0100)
committerAndy Wingo <wingo@pobox.com>
Sat, 9 Jan 2010 18:21:09 +0000 (19:21 +0100)
commit0af34a3f833a3e90edc18223b91fcafebc786275
tree298a5ec966061f17f76463a18bdb8a09929af2a6
parent6f16379e9a8d1f2d10c648793582a10772f29e32
port-encoding returns #f if port encoding not set

* libguile/ports.c (scm_port_encoding): Instead of returning "NONE" if
  we don't know the encoding, return #f. Allows truncated-print to work
  if you don't have a locale set.
libguile/ports.c