Raymond Toy <toy.raymond at gmail.com> writes:
> Rupert> We decide which one to use in LOCALE-SUBDIR (in
> Rupert> init-cl.lisp, with some of the bits now in
> Rupert> locale.lisp). Looking more carefully, I think I was wrong
> Rupert> and it was using latin1 at first. (Given that I rewrote
> Rupert> some of that, it's a bit embarrasing to have
> Rupert> misremembered!)
>
> So, LANG=es_ES will use es/ (latin1) and es_ES:UTF-8 will use es.utf8?
Yep, I think so.
> Rupert> (1) I'm using a lisp that doesn't support unicode...
> Rupert> (2) and a terminal that expects utf-8
> Rupert> (3) The documentation is written in latin1
>
> So, basically you're saying utf8 is only useful in the above
> situation? Since gcl is still supported and still the default on
> Windows, I would say we have to preserve this.
Well, that's all I can see. Also, I guess ecl builds without unicode
support (like mine, it turns out!). I'll carry on battling with automake
for a little longer and see if I can improve things a bit.
> Rupert> Really? So you mean that the code
>
> Rupert> (print (string #\LATIN_SMALL_LETTER_A_WITH_DIAERESIS))
>
> Rupert> will output junk if my terminal isn't set to cmucl's
> Rupert> default internal coding system? (utf8?)
>
> It won't be total junk. The default coding system is latin1. If the
> character can't be output correctly in the stream external format, a
> "?" is used.
>
> On input, if the coded character is invalid, cmucl will replace it
> with U+FFFD (unicode replacement character).
>
> Both of these behaviors can be controlled so that an error can be
> signaled, but the default is to proceed.
>
> I might consider having maxima look at locale (or local-subdir) and
> set up the default external format and stream external format to use
> it.
Right, that makes sense. I'll happily spend some time on setting an
output format sensibly, since I'm hacking my way around this stuff
anyway. Until I worked out what I was doing wrong with Clisp, I thought
I was going to have to do it there. Thank you so much for the really
quick responses!
Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20130504/808958e9/attachment.pgp>