Package: maxima
Version: 5.21.1-2squeeze
Severity: normal

Maxima has problems with UTF8 characters like µ:
(For better portability I replaced all instances of the symbol "illegal character" with 
"<?>"):

For reference, this is what my system thinks that µ is:
$ echo -n µ | od -t o1
0000000 302 265
0000002


As a commandline parameter it throws an error:
$ maxima --batch-string="µ;"
incorrect syntax: <?> is not an infix operator
\302\265
^

$ echo "µ;" | maxima
(%i1) incorrect syntax: <?> is not an infix operator
\302\265
^


Interesting is that in interactive mode the output is different to 
"half-interactive" with cat inbetween:
$ maxima
(%i1) µ;
(%o1)                                  <?>


$ cat | maxima
(%i1) µ;
incorrect syntax: <?> is not an infix operator
\302\265
^

As far as I can see, it thinks of characters as one-byte-items, but somehow chokes on 
unicode characters instead of passing them through without change. "ab" is also 
a possible variable name, these are two bytes just like µ is two bytes.
Please at least implement a sensible warning message.

Bug #617355 "[wxmaxima] hangs on UTF8 characters like µ" is probably related to 
this.

Thanks

Max Gaukler

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.32-5-amd64

Debian Release: 6.0
  500 stable          security.debian.org
  500 stable          ftp.uni-erlangen.de
  500 squeeze-updates ftp.uni-erlangen.de

--- Package information. ---
Depends             (Version) | Installed
=============================-+-=============
libc6                (>= 2.7) | 2.11.2-10
libgmp3c2                     | 2:4.3.2+dfsg-1
libreadline6         (>= 6.0) | 6.1-3
libx11-6                      | 2:1.3.3-4
zlib1g           (>= 1:1.1.4) | 1:1.2.3.4.dfsg-3
gnuplot-x11                   | 4.4.0-1.1+b1


Recommends        (Version) | Installed
===========================-+-===========
maxima-share                | 5.21.1-2squeeze


Suggests          (Version) | Installed
===========================-+-===========
texmacs                     |
maxima-doc                  | 5.21.1-2squeeze
xmaxima                     |
maxima-emacs                |







--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to