https://bugzilla.wikimedia.org/show_bug.cgi?id=36336
Web browser: ---
Bug #: 36336
Summary: Code review crashes on
/trunk/tools/viaf/viaf.bookmarklet.bootloader.js
(corrected utf8 in a follow-up commit)
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: CodeReview
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Just mentioning a crash due to a wrongly encoded character in commit
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115079 which crashes the
CR viewer - this should however not happen and present a better message. (As we
are moving to git I do _not_ expect this being fixed.)
I already corrected the wrongly encoded character in the follow-up
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115080
https://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/viaf/viaf.bookmarklet.bootloader.js?view=markup&pathrev=115079
An Exception Has Occurred
Python Traceback
Traceback (most recent call last):
File "/usr/lib/viewvc/viewvc.py", line 4396, in main
request.run_viewvc()
File "/usr/lib/viewvc/viewvc.py", line 398, in run_viewvc
self.view_func(self)
File "/usr/lib/viewvc/viewvc.py", line 1811, in view_markup
markup_or_annotate(request, 0)
File "/usr/lib/viewvc/viewvc.py", line 1744, in markup_or_annotate
path[-1], mime_type, encoding)
File "/usr/lib/viewvc/viewvc.py", line 1625, 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 bytes in position 235-237:
invalid data
I corrected the wrongly encoded character in the follow-up
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115079
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l