Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: trunk/src/remoting/tools/build/remoting_localize.py

Issue 141003004: Revert 245489 "make utf-8 default encoding for remoting_localize.py" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/remoting/remoting.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/remoting/tools/build/remoting_localize.py
===================================================================
--- trunk/src/remoting/tools/build/remoting_localize.py (revision 245499)
+++ trunk/src/remoting/tools/build/remoting_localize.py (working copy)
@@ -590,7 +590,7 @@
return values
-def WriteIfChanged(file_name, contents, encoding):
+def WriteIfChanged(file_name, contents, encoding='utf-16'):
"""
Writes the specified contents to the specified file_name
iff the contents are different than the current contents.
@@ -743,8 +743,8 @@
'-d', '--define', dest='define', action='append', type='string',
help='define a variable (NAME=VALUE).')
parser.add_option(
- '--encoding', dest='encoding', type='string', default='utf-8',
- help="set the encoding of <output>. 'utf-8' is the default.")
+ '--encoding', dest='encoding', type='string', default='utf-16',
+ help="set the encoding of <output>. 'utf-16' is the default.")
parser.add_option(
'--jinja2', dest='jinja2', type='string',
help="specifies path to the jinja2 library.")
« no previous file with comments | « trunk/src/remoting/remoting.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698