#4975: [with patch, positive review] Sage 3.2.2 chokes on utf-8 encoded files
----------------------------+-----------------------------------------------
Reporter: mkasperski | Owner: mhansen
Type: defect | Status: reopened
Priority: critical | Milestone: sage-3.3
Component: user interface | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment (by mkasperski):
Having taken a look at the source, it seems that the problem happens here:
{{{
insert = '%s%s%s.\nfrom sage.all_cmdline import * # import sage
library\n'%(coding, AUTOGEN_MSG, f)
i = find_position_right_after_module_docstring(G)
G = G[:i] + insert + G[i:]
}}}
as you see, if sage detects module docstring, it adds coding AFTER IT
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4975#comment:6>
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
-~----------~----~----~----~------~----~------~--~---