Skip to content

io.Platform.localeName is '_' on iOS simulator #23241

@SteveAlexander

Description

@SteveAlexander

io.Platform.localeName returns '_' on an iOS simulator.

I found this because it is causing https://github.com/Dana-Ferguson/time_machine to not initialize, as it expects a proper locale string.

$ flutter doctor -v
[✓] Flutter (Channel master, v0.10.1-pre.77, on Mac OS X 10.13.6 17G2307, locale
    en-GB)
    • Flutter version 0.10.1-pre.77 at /Users/steve/code/flutter
    • Framework revision 5193affb27 (2 hours ago), 2018-10-18 04:15:02 -0400
    • Engine revision cc2ec365b7
    • Dart version 2.1.0-dev.7.1.flutter-b99bcfd309

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
    • Android SDK at /Users/steve/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-28, build-tools 28.0.1
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.0, Build version 10A255
    • ios-deploy 2.0.0
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 26.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.27.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.18.0

[✓] Connected device (1 available)
    • iPhone X • EF563F7A-675E-4CF8-AFFF-E518AF44A1F2 • ios • iOS 12.0
      (simulator)

• No issues found!

Metadata

Metadata

Assignees

Labels

a: internationalizationSupporting other languages or locales. (aka i18n)c: regressionIt was better in the past than it is nowcustomer: mulligan (g3)engineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions