Author: chrisz
Date: Sat Jan 26 06:57:54 2008
New Revision: 4054
URL: http://trac.turbogears.org/changeset/4054

Log:
Fixed source encoding in magic comments (lowercase names for encodings are 
preferred in Python). (merged r3843 from 1.0 to 1.1 branch)

Modified:
   branches/1.1/turbogears/qstemplates/quickstart/+package+/commands.py_tmpl
   branches/1.1/turbogears/qstemplates/quickstart/setup.py_tmpl
   branches/1.1/turbogears/qstemplates/quickstart/start-+package+.py_tmpl
   branches/1.1/turbogears/widgets/static/calendar/lang/calendar-fr.js
   branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw-utf-8.js
   branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw-utf8.js
   branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw.js

Modified: 
branches/1.1/turbogears/qstemplates/quickstart/+package+/commands.py_tmpl
==============================================================================
--- branches/1.1/turbogears/qstemplates/quickstart/+package+/commands.py_tmpl   
(original)
+++ branches/1.1/turbogears/qstemplates/quickstart/+package+/commands.py_tmpl   
Sat Jan 26 06:57:54 2008
@@ -1,4 +1,4 @@
-# -*- coding: UTF-8 -*-
+# -*- coding: utf-8 -*-
 """This module contains functions called from console script entry points."""
 
 import os
@@ -26,7 +26,7 @@
     # First look on the command line for a desired config file,
     # if it's not on the command line, then look for 'setup.py'
     # in the current directory. If there, load configuration
-    # from a file called 'dev.cfg'. If it's not there, the project 
+    # from a file called 'dev.cfg'. If it's not there, the project
     # is probably installed and we'll look first for a file called
     # 'prod.cfg' in the current directory and then for a default
     # config file called 'default.cfg' packaged in the egg.
@@ -39,7 +39,7 @@
     else:
         try:
             configfile = pkg_resources.resource_filename(
-              pkg_resources.Requirement.parse("${project}"), 
+              pkg_resources.Requirement.parse("${project}"),
                 "config/default.cfg")
         except pkg_resources.DistributionNotFound:
             raise ConfigurationError("Could not find default configuration.")

Modified: branches/1.1/turbogears/qstemplates/quickstart/setup.py_tmpl
==============================================================================
--- branches/1.1/turbogears/qstemplates/quickstart/setup.py_tmpl        
(original)
+++ branches/1.1/turbogears/qstemplates/quickstart/setup.py_tmpl        Sat Jan 
26 06:57:54 2008
@@ -1,4 +1,4 @@
-# -*- coding: UTF-8 -*-
+# -*- coding: utf-8 -*-
 
 from setuptools import setup, find_packages
 from turbogears.finddata import find_package_data
@@ -80,4 +80,3 @@
     # if you want to package a default configuration in your egg.
     #data_files = [('config', ['default.cfg'])],
     )
-

Modified: branches/1.1/turbogears/qstemplates/quickstart/start-+package+.py_tmpl
==============================================================================
--- branches/1.1/turbogears/qstemplates/quickstart/start-+package+.py_tmpl      
(original)
+++ branches/1.1/turbogears/qstemplates/quickstart/start-+package+.py_tmpl      
Sat Jan 26 06:57:54 2008
@@ -1,8 +1,8 @@
 #!${sys_executable}
-# -*- coding: UTF-8 -*-
+# -*- coding: utf-8 -*-
 """Start script for the ${project} TurboGears project.
 
-This script is only needed during development for running from the project 
+This script is only needed during development for running from the project
 directory. When the project is installed, easy_install will create a
 proper start script.
 """

Modified: branches/1.1/turbogears/widgets/static/calendar/lang/calendar-fr.js
==============================================================================
--- branches/1.1/turbogears/widgets/static/calendar/lang/calendar-fr.js 
(original)
+++ branches/1.1/turbogears/widgets/static/calendar/lang/calendar-fr.js Sat Jan 
26 06:57:54 2008
@@ -2,7 +2,7 @@
 
 // Calendar FR language
 // Author: Mihai Bazon, <[EMAIL PROTECTED]>
-// Encoding: UTF8
+// Encoding: UTF-8
 // Distributed under the same terms as the calendar itself.
 
 // For translators: please use UTF-8 if possible.  We strongly believe that

Modified: 
branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw-utf-8.js
==============================================================================
--- 
branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw-utf-8.js    
    (original)
+++ 
branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw-utf-8.js    
    Sat Jan 26 06:57:54 2008
@@ -2,13 +2,13 @@
 
 // Calendar big5-utf8 language
 // Author: Gary Fu, <[EMAIL PROTECTED]>
-// Encoding: utf8
+// Encoding: utf-8
 // Distributed under the same terms as the calendar itself.
 
 // For translators: please use UTF-8 if possible.  We strongly believe that
 // Unicode is the answer to a real internationalized world.  Also please
 // include your contact information in the header, as can be seen above.
-       
+
 // full day names
 Calendar._DN = new Array
 ("星期日",

Modified: 
branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw-utf8.js
==============================================================================
--- branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw-utf8.js 
(original)
+++ branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw-utf8.js 
Sat Jan 26 06:57:54 2008
@@ -2,13 +2,13 @@
 
 // Calendar big5-utf8 language
 // Author: Gary Fu, <[EMAIL PROTECTED]>
-// Encoding: utf8
+// Encoding: utf-8
 // Distributed under the same terms as the calendar itself.
 
 // For translators: please use UTF-8 if possible.  We strongly believe that
 // Unicode is the answer to a real internationalized world.  Also please
 // include your contact information in the header, as can be seen above.
-       
+
 // full day names
 Calendar._DN = new Array
 ("星期日",

Modified: branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw.js
==============================================================================
--- branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw.js      
(original)
+++ branches/1.1/turbogears/widgets/static/calendar/lang/calendar-zh-tw.js      
Sat Jan 26 06:57:54 2008
@@ -2,13 +2,13 @@
 
 // Calendar big5-utf8 language
 // Author: Gary Fu, <[EMAIL PROTECTED]>
-// Encoding: utf8
+// Encoding: utf-8
 // Distributed under the same terms as the calendar itself.
 
 // For translators: please use UTF-8 if possible.  We strongly believe that
 // Unicode is the answer to a real internationalized world.  Also please
 // include your contact information in the header, as can be seen above.
-       
+
 // full day names
 Calendar._DN = new Array
 ("星期日",

Reply via email to