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

Unified Diff: visual_studio/NativeClientVSAddIn/create_package.py

Issue 10948016: Use utf8 encoding for .AddIn. (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 3 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 | « visual_studio/NativeClientVSAddIn/InstallerResources/NativeClientVSAddIn.AddIn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: visual_studio/NativeClientVSAddIn/create_package.py
diff --git a/visual_studio/NativeClientVSAddIn/create_package.py b/visual_studio/NativeClientVSAddIn/create_package.py
index b974c2edebb3a21b0a3679c5a301adfc9c1eb424..c630d2e9f67a5efb5b14155e8306df027bd3131b 100644
--- a/visual_studio/NativeClientVSAddIn/create_package.py
+++ b/visual_studio/NativeClientVSAddIn/create_package.py
@@ -100,8 +100,8 @@ def AddVersionModifiedAddinFile(zip_file):
modified_file = os.path.join(ASSEMBLY_DIRECTORY, metadata_filename)
# Copy the metadata file to new location and modify the version info.
- with codecs.open(ADDIN_METADATA, 'r', encoding='utf-16') as source_file:
- with codecs.open(modified_file, 'w', encoding='utf-16') as dest_file:
+ with open(ADDIN_METADATA, 'r') as source_file:
+ with open(modified_file, 'w') as dest_file:
for line in source_file:
dest_file.write(line.replace("[REPLACE_ADDIN_VERSION]", version))
« no previous file with comments | « visual_studio/NativeClientVSAddIn/InstallerResources/NativeClientVSAddIn.AddIn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698