Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created June 29, 2009 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtnabe/137895 to your computer and use it in GitHub Desktop.
Save wtnabe/137895 to your computer and use it in GitHub Desktop.
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