Tk Source Code

View Ticket
Login
2025-12-02
21:08 Closed ticket [095db8b3]: ::tk::startOfCluster (and friends) only understand ICU locale syntax plus 7 other changes artifact: e59262d9 user: jan.nijtmans
21:02
Fix [095db8b350]: ::tk::startOfCluster (and friends) only understand ICU locale syntax check-in: 9c6c76ed user: jan.nijtmans tags: core-9-0-branch
13:02
Fix [095db8b350]: ::tk::startOfCluster (and friends) only understand ICU locale syntax closed check-in: 79d50ac2 user: jan.nijtmans tags: bug-095db8b350
13:01 New ticket [095db8b3] ::tk::startOfCluster (and friends) only understand ICU locale syntax. artifact: 4ee64f2f user: jan.nijtmans

Ticket UUID: 095db8b350810e0b2b4200a55db18b672b38f4d3
Title: ::tk::startOfCluster (and friends) only understand ICU locale syntax
Type: Bug Version: 9.0
Submitter: jan.nijtmans Created on: 2025-12-02 13:01:13
Subsystem: 26. Conversions from String Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2025-12-02 21:08:42
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2025-12-02 21:08:42
Description:

The 3th argument of ::tk::startOfCluster (and friends) is the (optional) locale, but no-where is specified what this locale looks like. There is a difference between ICU locales and POSIX locales. See https://unicode-org.github.io/icu/userguide/locale/#the-locale-concept

ICU has a uloc_canonicalize() function which can translate from a POSIX or Java or .NET locale to a ICU locale. This function should have been used, so those functions can understand POSIX locales in addition to the (more restricted) POSIX locales

User Comments: jan.nijtmans added on 2025-12-02 21:08:42:

Fixed [9c6c76edfd6dcb5a|here]