I have a problem with svn. When updating trunk today I get the following
from line 94 in matplotlib/__init__.py:
__date__ = '$Date: 2008-12-15 21:46:00 +0100 (må, 15 dec 2008) $'
As you can see there is a 'å' in the Date string but there is no
encoding specified at the top of the file so I get a SyntaxError about
unspecified encoding when I import matplotlib. It seems svn assumes utf-8.
Traceback (most recent call last):
File "C:\Python25\Scripts\ipython.py", line 28, in <module>
File "c:\python\external\ipython\IPython\Shell.py", line 1243, in start
shell = _select_shell(sys.argv)
File "c:\python\external\ipython\IPython\Shell.py", line 1200, in
SyntaxError: Non-ASCII character '\xc3' in file
on line 94, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
Does anyone know how I can force svn and tortoise svn to not include the
last part with the weekday? I'm not sure if svn always uses utf-8 if
that is the case then we could just add the encoding specification and
everything will work. I believe it would be best if this can be fixed on
the server side otherwise this problem will come up now and again
depending on user configurations.
From: Jouni K. Seppänen <jks@ik...> - 2008-12-16 21:12:33
> __date__ = '$Date: 2008-12-15 21:46:00 +0100 (må, 15 dec 2008) $'
> Does anyone know how I can force svn and tortoise svn to not include the
> last part with the weekday? I'm not sure if svn always uses utf-8 if
> that is the case then we could just add the encoding specification and
> everything will work.
Does "LC_ALL=C svn update" work for you?
The bug report http://subversion.tigris.org/issues/show_bug.cgi?id=2332
implies that it always uses UTF-8, so putting an encoding cookie in the
file might be the easiest solution.
Jouni K. Seppänen
Get latest updates about Open Source Projects, Conferences and News.