#4975: Sage 3.2.2 chokes on utf-8 encoded files
----------------------------+-----------------------------------------------
 Reporter:  mkasperski      |       Owner:  was
     Type:  defect          |      Status:  new
 Priority:  minor           |   Milestone:     
Component:  user interface  |    Keywords:     
----------------------------+-----------------------------------------------
 I just downloaded sage 3.2.2 and found it to choke on utf-8 encoded source
 files (for comparison, sage 3.0 handles them properly). My bet is that
 some problem happened during integration of issue 2637. Tested using
 sage-3.2.2-ubuntu32bit-intel-i686-Linux binary distribution.

 Take the file like:
 {{{
 # -*- coding: utf-8 -*-

 """
 Zażółć gęślą jaźń
 """

 print 1
 }}}

 and try:

 {{{
 $ sage test.sage
 }}}

 Result:

 {{{
   File "test.py", line 6
 SyntaxError: Non-ASCII character '\xc5' in file test.py on line 7, but no
 encoding declared; see http://www.python.org/peps/pep-0263.html for
 details
 }}}

 Produced file:

 {{{
 # This file was *autogenerated* from the file test.sage.
 from sage.all_cmdline import *   # import sage library
 _sage_const_1 = Integer(Integer(1))# -*- coding: utf-8 -*-

 """
 Zażółć gęślą jaźń
 """

 print _sage_const_1
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4975>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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