mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-11 10:00:58 +00:00
print errors in the preferred encoding
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2864 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
ab2a968b1e
commit
25044ce08b
1 changed files with 3 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ Main functions for link checking.
|
|||
"""
|
||||
|
||||
import time
|
||||
import locale
|
||||
import sys
|
||||
import os
|
||||
import cgi
|
||||
|
|
@ -153,7 +154,8 @@ acap # application configuration access protocol
|
|||
|
||||
ignored_schemes_re = re.compile(ignored_schemes, re.VERBOSE)
|
||||
|
||||
stderr = codecs.getwriter("iso8859-1")(sys.stderr, errors="ignore")
|
||||
_encoding = locale.getpreferredencoding()
|
||||
stderr = codecs.getwriter(_encoding)(sys.stderr, errors="ignore")
|
||||
|
||||
def internal_error ():
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue