| Index: pkg/intl/lib/intl_standalone.dart
|
| diff --git a/pkg/intl/lib/intl_standalone.dart b/pkg/intl/lib/intl_standalone.dart
|
| index fc22cf965dea8931ea0ac99379b989e402139010..e40126ff5d2af02872044ce6de0482ba6ca0e464 100644
|
| --- a/pkg/intl/lib/intl_standalone.dart
|
| +++ b/pkg/intl/lib/intl_standalone.dart
|
| @@ -35,12 +35,10 @@ import "intl.dart";
|
| Future<String> findSystemLocale() {
|
| // On *nix systems we expect this is an environment variable, which is the
|
| // easiest thing to check. On a Mac the environment variable may be present
|
| - // so always check it first.
|
| + // so always check it first. We have no mechanism for this right now on
|
| + // Windows, so it will just fail.
|
| String baseLocale = _checkEnvironmentVariable();
|
| if (baseLocale != null) return _setLocale(baseLocale);
|
| - if (Platform.operatingSystem == 'windows') {
|
| - return _getWindowsSystemInfo();
|
| - }
|
| if (Platform.operatingSystem == 'macos') {
|
| return _getAppleDefaults();
|
| }
|
| @@ -49,12 +47,6 @@ 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\w-\w+;))");
|
| -
|
| -/**
|
| * Regular expression to match the expected output of reading the defaults
|
| * database for AppleLanguages on Mac systems.
|
| * e.g. {
|
| @@ -86,15 +78,6 @@ Future _getAppleDefaults() {
|
| }
|
|
|
| /**
|
| - * Run the "systemlocale" command and return the output in a future.
|
| - */
|
| -Future _getWindowsSystemInfo() {
|
| - var p = Process.run('systeminfo', []);
|
| - var myResult = p.then((result) => _checkResult(result, sysInfoRegex));
|
| - return myResult;
|
| -}
|
| -
|
| -/**
|
| * Given [result], find its text and extract the locale from it using
|
| * [regex], and set it as the system locale. If the process didn't run correctly
|
| * then don't set the variable and return a future that completes with null.
|
|
|