#13296: matplotlib do not handle unicode properly from command line
---------------------------------------+------------------------------------
Reporter: slabbe | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-5.3
Component: graphics | Resolution:
Keywords: unicode, matplotlib | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------------------+------------------------------------
Comment (by ppurka):
Replying to [comment:6 slabbe]:
> Replying to [comment:5 ppurka]:
> > According to a note in `sage/misc/interpreter.py`, Sage defaults to
`utf-8` if no encoding is detected.
>
> Using sage-5.2.rc0, I don't see this note. It diseappeared? or appeared
later?
It's there in line 336 of
`$SAGE_ROOT/devel/sage/sage/misc/interpreter.py`.
> > But `sage file.sage` doesn't work. Probably the functions in
`interpreter.py` don't get called?
>
> But if the encoding is declared in {{{file.sage}}} :
Of course, it works then. All that the functions in `interpreter.py` do is
put the string `-*- coding: utf-8 -*-` in the beginning of the python file
they create. After that it "just works." Which is why I said that perhaps
the necessary functions in the `interpreter.py` are not called when Sage
is run in command line.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13296#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.