ecma402 icon indicating copy to clipboard operation
ecma402 copied to clipboard

Inconsistency in definition of "calendar types"

Open ptomato opened this issue 1 year ago • 1 comments

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 avatar Jan 16 '24 18:01 ptomato

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']

sffc avatar Jan 16 '24 18:01 sffc