Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[v12.x] icu: broken date locale string format on zh-CN #35390

Copy link
Copy link
@legendecas

Description

@legendecas
Issue body actions
  • Version: v12.17.0-12.18.4
  • Platform: all
  • Subsystem: icu

What steps will reproduce the bug?

$ LANG=zh_CN.UTF-8 node -p 'new Date().toLocaleString()'
2020-9-28 3:33:35 ├F10: PM┤

How often does it reproduce? Is there a required condition?

Always.

What is the expected behavior?

node v12.16.3 (small-icu, English only)

$ LANG=zh_CN.UTF-8 node -p 'new Date().toLocaleString()'
2020-9-28 15:34:08

node v14.12.0 (full-icu)

$ LANG=zh_CN.UTF-8 node -p 'new Date().toLocaleString()'
2020/9/28 下午3:35:06

Both cases are correct.

What do you see instead?

Invalid and meaningless symbol characters "├F10: PM┤" in localized strings.

Additional information

Reverting #33337 (5c0232a, 2d76ae7) can fix the issue.

Lellansin, echosoar, susabolca, hansnow, mariodu and 1 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.i18n-apiIssues and PRs related to the i18n implementation.Issues and PRs related to the i18n implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.