[viewvc-users] python 2.6 exception when viewing a file containing a ' (ascii 0x92)
Tobias Grüninger <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <477210095.10725.1315989304939.JavaMail.httpd__42177.6374955245$1316003393$gmane$org@localhost> |
Being not so firm with python, I have a problem viewing certain files with ViewVC.
Each file in CVS which contains a ‘ (ascii 0x92) raises an exception when viewed with ViewVC:
Python Traceback
Traceback (most recent call last):
.....
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 0x92 in position 210: invalid start byte
At this position (a simple .h file) there is at position 210 a ' in a comment.
Removing this and checking in, all is fine.
I am not sure if the problem is in a configuration of ViewVC or that python needs a specific configuration
Version: ViewVC 1.1.5 and python 2.6 on Debian 6.0
Thanks for any help
Tobias
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2838429
To unsubscribe from this discussion, e-mail: [[email protected]].