From 4ffc9760a3c1de8149e4ef03208d6ad9e5605bbf Mon Sep 17 00:00:00 2001 From: milde Date: Tue, 4 Jun 2013 12:46:30 +0000 Subject: Consistently use "utf-8" (not "utf8") in magic comment giving source encoding. Fixes problems with Docutils installed in "virtualenv" https://sourceforge.net/p/docutils/patches/105/ git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7668 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/lt.py | 4 ++-- docutils/parsers/rst/languages/lt.py | 2 +- docutils/transforms/universal.py | 2 +- docutils/utils/__init__.py | 2 +- docutils/utils/error_reporting.py | 2 +- docutils/utils/math/latex2mathml.py | 2 +- docutils/utils/math/tex2unichar.py | 2 +- docutils/utils/punctuation_chars.py | 6 +++--- docutils/utils/smartquotes.py | 2 +- docutils/writers/latex2e/__init__.py | 2 +- docutils/writers/xetex/__init__.py | 2 +- test/test__init__.py | 2 +- test/test_command_line.py | 2 +- test/test_error_reporting.py | 2 +- test/test_parsers/test_rst/test_TableParser.py | 2 +- test/test_parsers/test_rst/test_inline_markup.py | 2 +- test/test_transforms/test_smartquotes.py | 2 +- test/test_writers/test_latex2e.py | 2 +- 18 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docutils/languages/lt.py b/docutils/languages/lt.py index 38131f765..6223f3d83 100644 --- a/docutils/languages/lt.py +++ b/docutils/languages/lt.py @@ -1,4 +1,4 @@ -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # $Id$ # Author: Dalius Dobravolskas # Copyright: This module has been placed in the public domain. @@ -59,7 +59,7 @@ bibliographic_fields = { author_separators = [';', ','] """List of separator strings for the 'Authors' bibliographic field. Tried in order.""" -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # $Id$ # Author: David Goodger # Copyright: This module has been placed in the public domain. diff --git a/docutils/parsers/rst/languages/lt.py b/docutils/parsers/rst/languages/lt.py index 233792a1f..49f17dc04 100644 --- a/docutils/parsers/rst/languages/lt.py +++ b/docutils/parsers/rst/languages/lt.py @@ -1,4 +1,4 @@ -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # $Id$ # Author: Dalius Dobravolskas # Copyright: This module has been placed in the public domain. diff --git a/docutils/transforms/universal.py b/docutils/transforms/universal.py index 76f08db02..36c9be149 100644 --- a/docutils/transforms/universal.py +++ b/docutils/transforms/universal.py @@ -1,5 +1,5 @@ # $Id$ -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # Authors: David Goodger ; Ueli Schlaepfer; Günter Milde # Maintainer: docutils-develop@lists.sourceforge.net # Copyright: This module has been placed in the public domain. diff --git a/docutils/utils/__init__.py b/docutils/utils/__init__.py index 3c979117f..57ce83abb 100644 --- a/docutils/utils/__init__.py +++ b/docutils/utils/__init__.py @@ -1,4 +1,4 @@ -# coding: utf8 +# coding: utf-8 # $Id$ # Author: David Goodger # Copyright: This module has been placed in the public domain. diff --git a/docutils/utils/error_reporting.py b/docutils/utils/error_reporting.py index 1e6bf3cbc..8c5ebbcb8 100644 --- a/docutils/utils/error_reporting.py +++ b/docutils/utils/error_reporting.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # :Id: $Id$ # :Copyright: © 2011 Günter Milde. diff --git a/docutils/utils/math/latex2mathml.py b/docutils/utils/math/latex2mathml.py index 05dad53c1..4c2980574 100644 --- a/docutils/utils/math/latex2mathml.py +++ b/docutils/utils/math/latex2mathml.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # :Id: $Id$ # :Copyright: © 2010 Günter Milde. diff --git a/docutils/utils/math/tex2unichar.py b/docutils/utils/math/tex2unichar.py index 55ed77349..434c0e8c3 100644 --- a/docutils/utils/math/tex2unichar.py +++ b/docutils/utils/math/tex2unichar.py @@ -1,4 +1,4 @@ -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # LaTeX math to Unicode symbols translation dictionaries. # Generated with ``write_tex2unichar.py`` from the data in diff --git a/docutils/utils/punctuation_chars.py b/docutils/utils/punctuation_chars.py index fc31ea517..7d8e97adb 100644 --- a/docutils/utils/punctuation_chars.py +++ b/docutils/utils/punctuation_chars.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # :Copyright: © 2011 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # @@ -135,8 +135,8 @@ if __name__ == '__main__': For each of the `catagories`, an item contains a list with all Unicode characters with `cp_min` <= code-point <= `cp_max` that belong to - the category. - + the category. + The default values check every code-point supported by Python (`sys.maxint` is 0x10FFFF in a "wide" build and 0xFFFF in a "narrow" build, i.e. ucs4 and ucs2 respectively). diff --git a/docutils/utils/smartquotes.py b/docutils/utils/smartquotes.py index d24d17414..2cd73ad53 100644 --- a/docutils/utils/smartquotes.py +++ b/docutils/utils/smartquotes.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # :Id: $Id$ # :Copyright: © 2010 Günter Milde, diff --git a/docutils/writers/latex2e/__init__.py b/docutils/writers/latex2e/__init__.py index 88c5eac45..89cb9e00a 100644 --- a/docutils/writers/latex2e/__init__.py +++ b/docutils/writers/latex2e/__init__.py @@ -1,4 +1,4 @@ -# .. coding: utf8 +# .. coding: utf-8 # $Id$ # Author: Engelbert Gruber, Günter Milde # Maintainer: docutils-develop@lists.sourceforge.net diff --git a/docutils/writers/xetex/__init__.py b/docutils/writers/xetex/__init__.py index 685752070..bfa0783b0 100644 --- a/docutils/writers/xetex/__init__.py +++ b/docutils/writers/xetex/__init__.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # :Author: Günter Milde # :Revision: $Revision$ diff --git a/test/test__init__.py b/test/test__init__.py index 3fc5b2769..31c344340 100644 --- a/test/test__init__.py +++ b/test/test__init__.py @@ -1,5 +1,5 @@ #! /usr/bin/env python -# .. coding: utf8 +# .. coding: utf-8 # $Id$ # Author: Günter Milde # Copyright: This module has been placed in the public domain. diff --git a/test/test_command_line.py b/test/test_command_line.py index c82b22dfb..e7e3faa77 100644 --- a/test/test_command_line.py +++ b/test/test_command_line.py @@ -1,5 +1,5 @@ #! /usr/bin/env python -# .. coding: utf8 +# .. coding: utf-8 # $Id$ # Author: Günter Milde # Copyright: This module has been placed in the public domain. diff --git a/test/test_error_reporting.py b/test/test_error_reporting.py index 89ae7ae8d..d5c223451 100644 --- a/test/test_error_reporting.py +++ b/test/test_error_reporting.py @@ -1,5 +1,5 @@ #! /usr/bin/env python -# .. coding: utf8 +# .. coding: utf-8 # $Id$ # Author: Günter Milde # Copyright: This module has been placed in the public domain. diff --git a/test/test_parsers/test_rst/test_TableParser.py b/test/test_parsers/test_rst/test_TableParser.py index 874efae56..72a0b4393 100755 --- a/test/test_parsers/test_rst/test_TableParser.py +++ b/test/test_parsers/test_rst/test_TableParser.py @@ -1,5 +1,5 @@ #! /usr/bin/env python -# coding: utf8 +# coding: utf-8 # $Id$ # Author: David Goodger diff --git a/test/test_parsers/test_rst/test_inline_markup.py b/test/test_parsers/test_rst/test_inline_markup.py index c123a1772..d707b7b67 100755 --- a/test/test_parsers/test_rst/test_inline_markup.py +++ b/test/test_parsers/test_rst/test_inline_markup.py @@ -1,5 +1,5 @@ #! /usr/bin/env python -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # $Id$ # Author: David Goodger diff --git a/test/test_transforms/test_smartquotes.py b/test/test_transforms/test_smartquotes.py index 3c059133a..26388e929 100644 --- a/test/test_transforms/test_smartquotes.py +++ b/test/test_transforms/test_smartquotes.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- # $Id$ # # :Copyright: © 2011 Günter Milde. diff --git a/test/test_writers/test_latex2e.py b/test/test_writers/test_latex2e.py index d7b6223f8..e81c1430b 100755 --- a/test/test_writers/test_latex2e.py +++ b/test/test_writers/test_latex2e.py @@ -1,4 +1,4 @@ -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- #! /usr/bin/env python # $Id$ -- cgit v1.2.1