Hi,
I was basically trying to pass '-D copyright=Värri' to sphinx-build,
and got Unicode error.
I was able to fix this with a quick-and-dirty patch shown below. Feel
free to use or modify or ignore. I can also file a bug or clone at
bitbucket if that's more to your liking :)
diff -r d63743ce75ec sphinx-build.py
--- a/sphinx-build.py Tue Sep 21 10:31:59 2010 +0200
+++ b/sphinx-build.py Tue Sep 28 00:36:07 2010 +0300
@@ -9,7 +9,10 @@
"""
import sys
+import locale
if __name__ == '__main__':
from sphinx import main
- sys.exit(main(sys.argv))
+ locale.setlocale(locale.LC_ALL, '')
+ argv = [a.decode(locale.getpreferredencoding()) for a in
sys.argv]
+ sys.exit(main(argv))
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.