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

Unified Diff: chrome/common/extensions/docs/server2/local_file_system.py

Issue 12230015: Fix unicode rendering of IDL files in the extension/apps developer server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
Index: chrome/common/extensions/docs/server2/local_file_system.py
diff --git a/chrome/common/extensions/docs/server2/local_file_system.py b/chrome/common/extensions/docs/server2/local_file_system.py
index 7babeca72aff9002415c25d1e44bca33431294f6..197869ac5e9b009223b71294a586f1a3016271d4 100644
--- a/chrome/common/extensions/docs/server2/local_file_system.py
+++ b/chrome/common/extensions/docs/server2/local_file_system.py
@@ -24,7 +24,7 @@ class LocalFileSystem(file_system.FileSystem):
contents = f.read()
if binary:
return contents
- return file_system._ProcessFileData(contents, filename)
+ return file_system._ToUnicode(contents)
except IOError:
raise file_system.FileNotFoundError(filename)

Powered by Google App Engine
This is Rietveld 408576698