Dear Torquil, Yes, you are right. It comes from non-utf8 character such as accentuated characters (mainly some commentaries in french ... ) which python refuses ! The only thing to do is to delete these accentuated characters. I did it for getfem_assembling_tensors.cc and now it works.
Yves. Le 27/01/2014 15:09, Torquil Macdonald Sørensen a écrit : > Hi! > > There seems to be some problems with the online source code browser at > GNA: > > http://svn.gna.org/viewcvs/getfem/ > > For some of the files, I get a Python error when trying to view the > file contents. E.g. when I click on the link "4448" next to the file > "getfem_assembling_tensors.cc", I get: > > > An Exception Has Occurred > > > Python Traceback > > Traceback (most recent call last): > File "/usr/lib/viewvc/lib/viewvc.py", line 4322, in main > request.run_viewvc() > File "/usr/lib/viewvc/lib/viewvc.py", line 397, in run_viewvc > self.view_func(self) > File "/usr/lib/viewvc/lib/viewvc.py", line 1766, in view_markup > markup_or_annotate(request, 0) > File "/usr/lib/viewvc/lib/viewvc.py", line 1699, in markup_or_annotate > path[-1], mime_type) > File "/usr/lib/viewvc/lib/viewvc.py", line 1592, in markup_stream_pygments > encoding='utf-8'), ps) > File "/usr/lib/pymodules/python2.6/pygments/__init__.py", line 86, in > highlight > return format(lex(code, lexer), formatter, outfile) > File "/usr/lib/pymodules/python2.6/pygments/__init__.py", line 45, in lex > return lexer.get_tokens(code) > File "/usr/lib/pymodules/python2.6/pygments/lexer.py", line 137, in > get_tokens > text = text.decode('utf-8') > File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode > return codecs.utf_8_decode(input, errors, True) > UnicodeDecodeError: 'utf8' codec can't decode byte 0xea in position 5064: > invalid continuation byte > > I also get this for some of the other files, e.g. > <http://svn.gna.org/viewcvs/getfem/trunk/getfem/src/bgeot_sparse_tensors.cc?view=log>bgeot_sparse_tensors.cc" > > > Best regards > Torquil Sørensen > > > _______________________________________________ > Getfem-users mailing list > [email protected] > https://mail.gna.org/listinfo/getfem-users -- Yves Renard ([email protected]) tel : (33) 04.72.43.87.08 Pole de Mathematiques, INSA-Lyon fax : (33) 04.72.43.85.29 20, rue Albert Einstein 69621 Villeurbanne Cedex, FRANCE http://math.univ-lyon1.fr/~renard ---------
_______________________________________________ Getfem-users mailing list [email protected] https://mail.gna.org/listinfo/getfem-users
