Skip to content

Platform.localHostname fails on Chinese Windows  #52701

@nielsenko

Description

@nielsenko
final hostname = Platform.localHostname

fails with:

Dart Error: Dart_NewStringFromUTF8 expects argument 'str' to be valid UTF-8.

on Chinese Windows (Chinese GB2312). See also: flutter/flutter#111957 and realm/realm-dart#1319.

Seen on on Flutter 3.10.4, ie. Dart 3.0.3.

I couldn't find any open issues on this, so here you have it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-iotype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions