Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0, 5.15.0
-
None
-
-
5
-
Foundation_Sprint 41 (Team 1), Team 1 Foundation_Sprint 42
Description
As documented as part of enum QLocale::FormatType, narrow format is treated as short when asking the system locale for day and month names.
This may be due to the MS-Win system APIs only providing full month names and "abbreviated" month names (that are in fact what would normally be termed short month names; typically three letters, rather than just one).
Even MS's APIs, however, distinguish full, short and abbreviated forms for day names; our generic Unix system back-end could perfectly well provide proper abbreviated forms for both month and day names; and the macOS APIs we use distinguish full, short and "very short" forms.
So there is no good reason not to support narrow formats just as faithfully as short and long, using relevant system APIs.
MS's deficiency can be documented as "we fall back to short when no narrow is available" but we should treat this as a deficiency of that back-end, only for months, rather than imposing it on all back-ends, both for months and for days.
Attachments
Issue Links
- relates to
-
QTBUG-79902 QLocale: make fuller and more faithful use of the CLDR data
- Open
-
QTBUG-86279 QLocale::system()'s standaloneDayName() and dayName() use the same back-end
- Closed
For Gerrit Dashboard: QTBUG-84877 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
367649,21 | Teach QLocale::system() to use narrow format | dev | qt/qtbase | Status: MERGED | +2 | 0 |
368469,3 | Fix QLocale::system() standalone day and month handling | dev | qt/qtbase | Status: MERGED | +2 | 0 |
368672,2 | QAndroidSystemLocale: add missing day and month format handling | dev | qt/qtbase | Status: MERGED | +2 | 0 |
368716,2 | qlocale_mac: make sure that helper functions return QVariant | dev | qt/qtbase | Status: MERGED | +2 | 0 |
369292,2 | Fix QLocale::system() standalone day and month handling | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
371108,2 | qlocale_mac: make sure that helper functions return QVariant | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
371109,2 | Teach QLocale::system() to use narrow format | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
371110,2 | QAndroidSystemLocale: add missing day and month format handling | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |