You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[v12.x] icu: broken date locale string format on zh-CN #35390
Have you installed the full-icu module? You may need to reinstall it so that it installs the full ICU data to match the version of ICU used in Node.js.
I wouldn't expect the Node.js 14 behaviour without full ICU. I can't remember if Node.js will ignore a full ICU install for the wrong version of ICU or would error/silently ignore it.
Yes, Node.js 14 behavior is expected to working with full-icu. The issue is not if the new Date().toLocaleString() result is localized or not. In v12.16.3, the locale result should be identical to the default English result (or some locales supported in icu-small, human-readable). However, starting from v12.17.0 there are unexpected symbols in the localized strings.
Activity
richardlau commentedon Sep 28, 2020
Have you installed the full-icu module? You may need to reinstall it so that it installs the full ICU data to match the version of ICU used in Node.js.
cc @nodejs/i18n-api
legendecas commentedon Sep 28, 2020
@richardlau v12.x is built with small-icu by default (doc). Is this issue possibly related to full-icu?
richardlau commentedon Sep 28, 2020
I wouldn't expect the Node.js 14 behaviour without full ICU. I can't remember if Node.js will ignore a full ICU install for the wrong version of ICU or would error/silently ignore it.
legendecas commentedon Sep 28, 2020
Yes, Node.js 14 behavior is expected to working with full-icu. The issue is not if the
new Date().toLocaleString()result is localized or not. In v12.16.3, the locale result should be identical to the default English result (or some locales supported in icu-small, human-readable). However, starting from v12.17.0 there are unexpected symbols in the localized strings.srl295 commentedon Oct 29, 2020
the symbol
├F10: PM┤sounds like absolutely no data was found, not even English.srl295 commentedon Oct 29, 2020
repro'ed. Sounds like the data slicing had a failure. Some data is present, but not other data.
richardlau commentedon Mar 16, 2021
cc @nodejs/i18n-api Any idea what we should do with this one?
srl295 commentedon Jun 2, 2021
@richardlau sorry, i have not looked into this any further
targos commentedon Apr 8, 2022
Closing this issue because v12.x goes EOL at the end of this month and no more releases are planned.