← 返回首页
Wide/narrow mixup in datetime · Issue #7988 · unicode-org/icu4x · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Wide/narrow mixup in datetime #7988

New issue
New issue

Description

In multiple locations the pattern lengths "wide" and "narrow" are mixed up. In LDML 4 is wide, and 5 is narrow: https://www.unicode.org/reports/tr35/tr35-dates.html#Contents:~:text=Pattern%20fields%20and%20the%20Date%20Field%20Symbol%20Table

/// - 4 is "narrow"
/// - 5 is "wide"

pub const NARROW: &DataMarkerAttributes = DataMarkerAttributes::from_str_or_panic("4");
pub const WIDE: &DataMarkerAttributes = DataMarkerAttributes::from_str_or_panic("5");

We need to validate if we just use the marker attributes the wrong way around (not a big deal, although should be documented), or if there is actual logic that got flipped (big deal).

Metadata

Metadata

Assignees

Labels

C-datetimeComponent: datetime, calendars, time zones

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

  • Open in GitHub Copilot app

Footer

© 2026 GitHub, Inc.