Create a gist now

Instantly share code, notes, and snippets.

A i18n patch for linkchecker 2.5 installed by Fink (MacOSX).
--- site-packages/linkcheck/i18n.py.org 2007-03-22 04:29:01.000000000 +0900
+++ site-packages/linkcheck/i18n.py 2009-06-30 08:52:04.000000000 +0900
@@ -26,7 +26,7 @@
# more supported languages are added in init()
supported_languages = ['en']
default_language = 'en'
-default_encoding = locale.getpreferredencoding()
+default_encoding = 'utf_8'
# It can happen that the preferrec encoding is not determinable, which
# means the function returned None. Fall back to ASCII in this case.
if default_encoding is None:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment