>>>>> "Raymond" == Raymond Toy <toy.raymond at gmail.com> writes:
Raymond> I was playing with localized info files with maxima and have run into
Raymond> an issue. With cmucl, I do
Raymond> LANGUAGE=es_ES: maxima-Local
Raymond> When I try "? build_info", the output is wrong. It contains funny
Raymond> characters representing U+FFFD (unicode replacement character). This
Raymond> also fails on clisp and sbcl with errors.
Raymond> I think the problem is that my cmucl init sets the default encoding to
Raymond> :utf8 and maxima's READ-INFO-TEXT just opens the file without setting
Raymond> an external format.
Raymond> AIUI, we basically just suck in a bunch of bytes and then send them
Raymond> out directly because the info file has the text encoded using the
Raymond> desired encoding. If this is the case, I think READ-INFO-TEXT should
Raymond> probably specify an external format of iso8859-1 so that all byte
Raymond> values are valid. Or we need to change it to read bytes instead of
Raymond> characters, and also change DISPLAY-ITEMS to output bytes instead of
Raymond> characters.
Raymond> It would probably be most portable to use bytes instead of characters
Raymond> so we don't have to deal with external formats at all.
Oops. That won't work because we can't portably write out bytes to
*standard-output* which is a character stream.
Ray