summaryrefslogtreecommitdiffstats
path: root/remoting/tools
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-18 00:13:29 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-18 00:13:29 +0000
commite83b8634de0b16d4a96b2f8895185f252ef7c59f (patch)
tree132724aca73d1f878b2f2d03141d95b322c54b94 /remoting/tools
parentfe7a2601c79ced173af8893d14278386a0d518bf (diff)
downloadchromium_src-e83b8634de0b16d4a96b2f8895185f252ef7c59f.zip
chromium_src-e83b8634de0b16d4a96b2f8895185f252ef7c59f.tar.gz
chromium_src-e83b8634de0b16d4a96b2f8895185f252ef7c59f.tar.bz2
make utf-8 default encoding for remoting_localize.py
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245489 Review URL: https://codereview.chromium.org/140793007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/tools')
-rwxr-xr-xremoting/tools/build/remoting_localize.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/remoting/tools/build/remoting_localize.py b/remoting/tools/build/remoting_localize.py
index 6a88884..5c4eeb1 100755
--- a/remoting/tools/build/remoting_localize.py
+++ b/remoting/tools/build/remoting_localize.py
@@ -590,7 +590,7 @@ def ReadMessagesFromFile(file_name):
return values
-def WriteIfChanged(file_name, contents, encoding='utf-16'):
+def WriteIfChanged(file_name, contents, encoding):
"""
Writes the specified contents to the specified file_name
iff the contents are different than the current contents.
@@ -743,8 +743,8 @@ def DoMain(argv):
'-d', '--define', dest='define', action='append', type='string',
help='define a variable (NAME=VALUE).')
parser.add_option(
- '--encoding', dest='encoding', type='string', default='utf-16',
- help="set the encoding of <output>. 'utf-16' is the default.")
+ '--encoding', dest='encoding', type='string', default='utf-8',
+ help="set the encoding of <output>. 'utf-8' is the default.")
parser.add_option(
'--jinja2', dest='jinja2', type='string',
help="specifies path to the jinja2 library.")