foreign language patch for build-index+cl-ppcre branch



On 2/21/11 1:44 PM, Leo Butler wrote:
>
> On Sun, 20 Feb 2011, Robert Dodier wrote:
>
> < I've attached a patch for the build-index+cl-ppcre branch in Git.
> < 
> < From what I can tell, characters in languages other than
> < English aren't displayed correctly by ? and ??;
> < the problem is that the code reads bytes instead of
> < characters from the .info files.
> < This patch fixes that problem, I hope. Also there are some
> < related changes to the build machinery (makefiles).
>  
>  Thanks for the patches, Robert.
>
>  I committed the patches to the Makefiles and build-index.lisp
>  separately, and pushed the changes to that branch.
>
>  I am not sure that this patch is correct, though: it seems
>  to me that it might be better to handle the info files as
>  byte streams and let Maxima/Lisp handle the display/encoding
>  in the info and info-exact functions (at the moment, these are
>  using format to print the info).
I think that if you treat the info files as byte streams and then just
output the bytes as read from the info file, you'll get the correct
result.  This assumes that the user has set up his environment and
terminal to use the correct encoding.

If we were trying to process the contents of the info file, this is not
so nice, but we just want to output a part of the info file, so this
works just fine.  This allows the info files to work even with a lisp
that doesn't support unicode.

Ray