Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency in definition of "calendar types" #852

Open
ptomato opened this issue Jan 16, 2024 · 1 comment
Open

Inconsistency in definition of "calendar types" #852

ptomato opened this issue Jan 16, 2024 · 1 comment
Labels
c: spec Component: spec editorial issues

Comments

@ptomato
Copy link
Contributor

ptomato commented Jan 16, 2024

Section 6.9, Calendar Types:

Their canonical form is a string containing only Unicode Basic Latin lowercase letters (U+0061 LATIN SMALL LETTER A through U+007A LATIN SMALL LETTER Z) with zero or more medial hyphens (U+002D HYPHEN-MINUS).

But section 6.9.1, AvailableCanonicalCalendars says:

The returned List [...] contains unique canonical calendar types [...]. The list must include "iso8601".

According to the above definition, "iso8601" isn't a canonical calendar type.

I propose changing 6.9 to read:

Their canonical form is a string containing only Unicode Basic Latin lowercase letters (U+0061 LATIN SMALL LETTER A through U+007A LATIN SMALL LETTER Z, inclusive) and/or digits (U+0030 DIGIT ZERO through U+0039 DIGIT NINE, inclusive), with zero or more medial hyphens (U+002D HYPHEN-MINUS).

@ptomato ptomato added the c: spec Component: spec editorial issues label Jan 16, 2024
@sffc
Copy link
Contributor

sffc commented Jan 16, 2024

Yeah, the AO should reference BCP-47 calendar IDs, not TR 35 calendar IDs, which are different (for example, "gregory" instead of "gregorian")

Intl.supportedValuesOf("calendar")
(18) ['buddhist', 'chinese', 'coptic', 'dangi', 'ethioaa', 'ethiopic', 'gregory', 'hebrew', 'indian', 'islamic', 'islamic-civil', 'islamic-rgsa', 'islamic-tbla', 'islamic-umalqura', 'iso8601', 'japanese', 'persian', 'roc']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: spec Component: spec editorial issues
Projects
None yet
Development

No branches or pull requests

2 participants