Automated g4 rollback of changelist 273643404.
*** Reason for rollback ***
Breaks things
*** Original change description ***
Canonicalize the locale in Intl.defaultLocale setter
***
PiperOrigin-RevId: 273676852
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d73236a..6f12923 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,8 +2,6 @@
* Add an analysis_options.yaml and fix or suppress all the complaints from it.
* Add unit tests using dart:ffi to compare formatting output to ICU.
* Bump SDK requirements up to 2.5.0 for dart:ffi availability.
- * Canonicalize the locale in the Intl.defaultLocale setter, so e.g. 'en-US'
- will get turned into the correct 'en_US'
## 0.16.0
* Fix 'k' formatting (1 to 24 hours) which incorrectly showed 0 to 23.
diff --git a/lib/intl.dart b/lib/intl.dart
index ec8a00d..f4120c7 100644
--- a/lib/intl.dart
+++ b/lib/intl.dart
@@ -99,7 +99,7 @@
}
static set defaultLocale(String newLocale) {
- _defaultLocale = canonicalizedLocale(newLocale);
+ _defaultLocale = newLocale;
}
static String _defaultLocale;