pg.py: make default --encoding 'utf-8' to avoid clobbering ENCODING with None.
authorW. Trevor King <wking@tremily.us>
Wed, 19 Sep 2012 23:54:31 +0000 (19:54 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 20 Sep 2012 00:15:33 +0000 (20:15 -0400)
bin/pg.py

index d035d1812c3660ef65e8a966a4c6fba89e3df5fd..a1ad271b67e6003aa1cac0021e53f296429e39e8 100755 (executable)
--- a/bin/pg.py
+++ b/bin/pg.py
@@ -55,7 +55,7 @@ if __name__ == '__main__':
         '-d', '--base-dir', dest='basedir', default='.',
         help='Base directory containing grade data')
     parser.add_argument(
-        '-e', '--encoding', dest='encoding',
+        '-e', '--encoding', dest='encoding', default='utf-8',
         help=('Override the default file encoding selection '
               '(useful when running from procmail)'))
     parser.add_argument(