Skip to content

Flutter engine should not use codeset as Locale.scriptCode on Linux #111341

@Yesterday17

Description

@Yesterday17

Description

On linux desktop, Locales are in the form language[_territory][.codeset][@modifier].
https://github.com/flutter/engine/blob/ce4156d519b94989684f508542b7cf644b6e7d67/shell/platform/linux/fl_engine.cc#L79-L112

Flutter engine parsed the string, but assigned codeset to scriptCode:
https://github.com/flutter/engine/blob/ce4156d519b94989684f508542b7cf644b6e7d67/shell/platform/linux/fl_engine.cc#L142

Codeset is not a valid scriptCode in most cases. In addition, on modern linux systems, it may contain -(UTF-8), which may break some locale parsers based on regular expression.

Related

slang-i18n/slang#102

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: desktopRunning on desktopengineflutter/engine related. See also e: labels.platform-linuxBuilding on or for Linux specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions