Bug 1198093 - Part 2: Set Default Locale Value in ICU Canonicalization Form. r=khuey
authorBevis Tseng <btseng@mozilla.com>
Wed, 30 Mar 2016 11:23:50 +0800
changeset 291275 7fa6eea202cb13eda52766eb0e2c9efa27a21ff6
parent 291274 57f7f132083c4cf6182a5c0aaa9c7ba05e589b5e
child 291276 44c3d66a71e3f2bf2f5e38ac3a20f6afd506aca1
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs1198093
milestone48.0a1
Bug 1198093 - Part 2: Set Default Locale Value in ICU Canonicalization Form. r=khuey
dom/indexedDB/IndexedDatabaseManager.cpp
--- a/dom/indexedDB/IndexedDatabaseManager.cpp
+++ b/dom/indexedDB/IndexedDatabaseManager.cpp
@@ -389,17 +389,17 @@ IndexedDatabaseManager::Init()
     if (!locale.isBogus()) {
       // icu::Locale::getBaseName is always ASCII as per BCP 47
       mLocale.AssignASCII(locale.getBaseName());
       break;
     }
   }
 
   if (mLocale.IsEmpty()) {
-    mLocale.AssignLiteral("en-US");
+    mLocale.AssignLiteral("en_US");
   }
 #endif
 
   return NS_OK;
 }
 
 void
 IndexedDatabaseManager::Destroy()