| Index: pkg/intl/lib/intl_standalone.dart
|
| diff --git a/pkg/intl/lib/intl_standalone.dart b/pkg/intl/lib/intl_standalone.dart
|
| index cce7722eead2d850eb85bba473e682789d92e7ba..fc22cf965dea8931ea0ac99379b989e402139010 100644
|
| --- a/pkg/intl/lib/intl_standalone.dart
|
| +++ b/pkg/intl/lib/intl_standalone.dart
|
| @@ -52,7 +52,7 @@ Future<String> findSystemLocale() {
|
| * Regular expression to match the expected output of systeminfo on
|
| * Windows. e.g. System Locale:<tab>en_US;English (United States)
|
| */
|
| -RegExp _sysInfoRegex = new RegExp(r"System Locale:\s+(\w\w-\w+);");
|
| +RegExp sysInfoRegex = new RegExp(r"System Locale:\s+((\w\w;)|(\w\w-\w+;))");
|
|
|
| /**
|
| * Regular expression to match the expected output of reading the defaults
|
| @@ -62,7 +62,7 @@ RegExp _sysInfoRegex = new RegExp(r"System Locale:\s+(\w\w-\w+);");
|
| * "pt-PT",
|
| * ...
|
| */
|
| -RegExp _appleDefaultsRegex = new RegExp(r'(\w\w_\w+)');
|
| +RegExp _appleDefaultsRegex = new RegExp(r'((\w\w)_\w+)');
|
|
|
| /**
|
| * Check to see if we have a "LANG" environment variable we can use and return
|
| @@ -90,7 +90,7 @@ Future _getAppleDefaults() {
|
| */
|
| Future _getWindowsSystemInfo() {
|
| var p = Process.run('systeminfo', []);
|
| - var myResult = p.then((result) => _checkResult(result, _sysInfoRegex));
|
| + var myResult = p.then((result) => _checkResult(result, sysInfoRegex));
|
| return myResult;
|
| }
|
|
|
|
|