Bug 450571 - LC_TIME zh_CN.UTF-8 letter only weekday label length is invalid
Summary: LC_TIME zh_CN.UTF-8 letter only weekday label length is invalid
Status: RESOLVED FIXED
Alias: None
Product: Merkuro
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Claudio Cambra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-19 14:24 UTC by Ivan Tham
Modified: 2024-01-12 08:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Tham 2022-02-19 14:24:56 UTC
SUMMARY
When using LC_TIME zh_CN.UTF-8, when weekday label length is set to letter only (M), the letter chosen is incorrect.

STEPS TO REPRODUCE
1. Set LC_TIME to zh_CN.UTF-8
2. Set weekday label length to letter only (M)

OBSERVED RESULT
It shows 周, 周, 周, 周, 周, 周, 周 for S, M, T, W, T, F, S (hopefully I am correct since I don't use english for time).

EXPECTED RESULT
It should have shown 日, 一, 二, 三, 四, 五, 六. It should have take the last character instead of the first when using zh_CN (and related chinese locale).

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.10-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 6 × AMD Ryzen 5 4500U with Radeon Graphics
Memory: 15.1 GiB of RAM
Graphics Processor: AMD RENOIR

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2024-01-12 01:39:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/merkuro/-/merge_requests/424
Comment 2 Carl Schwan 2024-01-12 08:09:48 UTC
Git commit d25f3ffde4d16d6d66d9d4bc6a16b1b99fca4f13 by Carl Schwan, on behalf of Zhangzhi Hu.
Committed on 12/01/2024 at 09:09.
Pushed by carlschwan into branch 'master'.

Fix wrong weekday label of Chinese locale when length set to letter only (M)

When using Chinese locale (zh_CN / zh_TW / zh_HK / zh_SG) and
weekday label length is set to letter only (M), the letter chosen
is incorrect. The last character should be taken instead of the
first when using Chinese locale.

M  +1    -1    src/calendar/qml/MainViews/BasicMonthGridView.qml

https://invent.kde.org/pim/merkuro/-/commit/d25f3ffde4d16d6d66d9d4bc6a16b1b99fca4f13
Comment 3 Carl Schwan 2024-01-12 08:10:09 UTC
Git commit b437923f8c0bf57770a21a9dea1cf6954a79db08 by Carl Schwan, on behalf of Zhangzhi Hu.
Committed on 12/01/2024 at 09:10.
Pushed by carlschwan into branch 'release/24.02'.

Fix wrong weekday label of Chinese locale when length set to letter only (M)

When using Chinese locale (zh_CN / zh_TW / zh_HK / zh_SG) and
weekday label length is set to letter only (M), the letter chosen
is incorrect. The last character should be taken instead of the
first when using Chinese locale.


(cherry picked from commit d25f3ffde4d16d6d66d9d4bc6a16b1b99fca4f13)

M  +1    -1    src/calendar/qml/MainViews/BasicMonthGridView.qml

https://invent.kde.org/pim/merkuro/-/commit/b437923f8c0bf57770a21a9dea1cf6954a79db08