#13161: Fix unicode issue in axes labels
----------------------------------------+-----------------------------------
       Reporter:  kcrisman              |         Owner:  jason, was     
           Type:  defect                |        Status:  needs_review   
       Priority:  major                 |     Milestone:  sage-5.3       
      Component:  graphics              |    Resolution:                 
       Keywords:                        |   Work issues:                 
Report Upstream:  N/A                   |     Reviewers:  Sébastien Labbé
        Authors:  Dan Drake, shahuwang  |     Merged in:                 
   Dependencies:                        |      Stopgaps:                 
----------------------------------------+-----------------------------------
Changes (by jhpalmieri):

  * status:  needs_work => needs_review


Comment:

 My guess is that the Asian (?) character used in the doctest is not
 recognized by utf-8 encoding, or at least by PDFLaTeX's unicode
 implementation. So we should try a different character instead, for
 example with this change:
 {{{
 #!diff
 diff --git a/sage/plot/graphics.py b/sage/plot/graphics.py
 --- a/sage/plot/graphics.py
 +++ b/sage/plot/graphics.py
 @@ -637,9 +637,9 @@ class Graphics(SageObject):
          ::

              sage: c = circle((0,0), 1)
 -            sage: c.axes_labels(['z',u'담'])
 +            sage: c.axes_labels(['z',u'é'])
              sage: c._axes_labels
 -            ('z', u'\xeb\x8b\xb4')
 +            ('z', u'\xc3\xa9')

              sage: c.axes_labels([u'an accent : é', 'Y'])
              sage: c._axes_labels
 }}}
 I'm attaching a new patch which does this.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13161#comment:16>
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.

Reply via email to