Tk Source Code

View Ticket
Login
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]