[eclipse-clp-users] Setting encoding for I/O

From: <mskala_at_ansuz.sooke.bc.ca>
Date: Thu, 7 Jul 2016 01:52:09 -0500 (CDT)
I'd like to be able to read and write bytes (not necessarily characters)
from standard input and output, regardless of locale settings and possibly
including sequences that are not valid in the locale.  How can I do this?

I've been able to find get_stream_info/3, which looks like it will tell me
the current encoding setting for a stream, and it looks like "octet" is
the one I want; but I haven't found any documented way to *set* this.

-- 
Matthew Skala
mskala_at_ansuz.sooke.bc.ca                 People before principles.
http://ansuz.sooke.bc.ca/
Received on Thu Jul 07 2016 - 06:50:12 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 07 2016 - 15:13:12 CEST