summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-06-04 12:46:30 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-06-04 12:46:30 +0000
commit4ffc9760a3c1de8149e4ef03208d6ad9e5605bbf (patch)
tree9702aa52229ee6ca5035744c61a04ee5b5e2da7e
parent9b44460d285ce318bcad3d8e69b9f8bcb6f2d3c1 (diff)
downloaddocutils-4ffc9760a3c1de8149e4ef03208d6ad9e5605bbf.tar.gz
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
-rw-r--r--docutils/languages/lt.py4
-rw-r--r--docutils/parsers/rst/languages/lt.py2
-rw-r--r--docutils/transforms/universal.py2
-rw-r--r--docutils/utils/__init__.py2
-rw-r--r--docutils/utils/error_reporting.py2
-rw-r--r--docutils/utils/math/latex2mathml.py2
-rw-r--r--docutils/utils/math/tex2unichar.py2
-rw-r--r--docutils/utils/punctuation_chars.py6
-rw-r--r--docutils/utils/smartquotes.py2
-rw-r--r--docutils/writers/latex2e/__init__.py2
-rw-r--r--docutils/writers/xetex/__init__.py2
-rw-r--r--test/test__init__.py2
-rw-r--r--test/test_command_line.py2
-rw-r--r--test/test_error_reporting.py2
-rwxr-xr-xtest/test_parsers/test_rst/test_TableParser.py2
-rwxr-xr-xtest/test_parsers/test_rst/test_inline_markup.py2
-rw-r--r--test/test_transforms/test_smartquotes.py2
-rwxr-xr-xtest/test_writers/test_latex2e.py2
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 <dalius.do...@gmail.com>
# 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 <goodger@python.org>
# 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 <dalius.do...@gmail.com>
# 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 <goodger@python.org>; 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 <goodger@python.org>
# 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 <milde@users.sourceforge.net>
# :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 <milde@users.sourceforge.net>
# 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 <milde@users.sourceforge.net>
# 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 <milde@users.sourceforge.net>
# 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 <goodger@python.org>
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 <goodger@python.org>
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$