unalloc / sqlautocode

Automatically exported from code.google.com/p/sqlautocode
Other
0 stars 0 forks source link

use 'utf-8' as a default encoding instead of 'utf8' #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Generate `model.py` using default encoding (without `-s` option)

What is the expected output? What do you see instead?
Emacs complains about encoding on writing the file

{{{
Warning (mule): Invalid coding system `utf8' is specified
for the current buffer/file by the :coding tag.
}}}

What version of the product are you using? On what operating system?
tip

Please provide any additional information below.
Here's default_coding.diff patch:
{{{
diff --git a/sqlautocode/config.py b/sqlautocode/config.py
--- a/sqlautocode/config.py
+++ b/sqlautocode/config.py
@@ -90,7 +90,7 @@

     parser.set_defaults(tables=[],
-                        encoding='utf8',
+                        encoding='utf-8',
                         table_prefix='',
                         table_suffix='')
}}}

Original issue reported on code.google.com by 4kir4...@gmail.com on 30 Mar 2010 at 11:13

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed although I don't think that this makes a difference

Original comment by spamsch@gmail.com on 30 Oct 2010 at 1:42