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

Unified Diff: runtime/vm/symbols.cc

Issue 11365243: Revert OneByteString back to ISO Latin-1 instead of ASCII (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « runtime/vm/object_test.cc ('k') | runtime/vm/unicode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/symbols.cc
===================================================================
--- runtime/vm/symbols.cc (revision 14982)
+++ runtime/vm/symbols.cc (working copy)
@@ -102,9 +102,9 @@
if (len == 0) {
return Symbols::New(reinterpret_cast<uint8_t*>(NULL), 0);
}
- if (type == Utf8::kAscii) {
+ if (type == Utf8::kLatin1) {
uint8_t* characters = zone->Alloc<uint8_t>(len);
- Utf8::DecodeToAscii(utf8_array, str_len, characters, len);
+ Utf8::DecodeToLatin1(utf8_array, str_len, characters, len);
return New(characters, len);
}
ASSERT((type == Utf8::kBMP) || (type == Utf8::kSMP));
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/unicode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698