ITADN

Wide/narrow mixup in datetime

#7988Openrobertbastian 创建于 2026-05-21
C-datetime
R
robertbastiancommented
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 https://github.com/unicode-org/icu4x/blob/bcb206cee8165e6bbad7fc053a4b5bd47b444644/components/datetime/src/provider/names.rs#L226-L227 https://github.com/unicode-org/icu4x/blob/0284a40c703dd094cd9edbc9fd33e4097452044d/components/datetime/src/provider/semantic_skeletons.rs#L25-L26 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).
1 条评论