Artifacts Associated With Ticket 2549196fff
Ticket change [96d3404f5b] (rid 106392) by dkf on 2009-01-30 14:10:04:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Tcl needs a system for doing case folding and case-insensitive comparisons. Works out as being adding a suitable -locale option to the following commands: lsearch, lsort, regexp, regsub, string compare, string equal, string is (possibly), string match, string tolower, string totitle, string toupper, switch -nocase Possibly also need to consider allowing other things to fit into the locale system (esp. the number handling of [format] and [scan]) but those might be delegatable to another issue. [[THIS FRQ IS BEING USED TO COALESCE OTHERS]]
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dkf"
- subsystem initialized to: "44. UTF-8 Strings"
- title initialized to: "Add locale support for case management"
- type initialized to: "RFE"
Ticket change [683d08cc77] (rid 103028) by ferrieux on 2009-01-30 21:19:10:
- icomment:
I understand comparisons are sensitive to the locale, but why are [string to*] included in this list ?
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [a112ff87b6] (rid 109657) by dkf on 2009-01-30 21:24:52:
- icomment:
Turkish has strange rules for dotted and dotless 'i's. Alas. There may be other oddities out there, but I've not done a proper literature search.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [0a8f615a4f] (rid 113842) by ferrieux on 2009-01-30 21:39:20:
- icomment:
Are the oddities locale-specific for a given character (e.g. [string toupper i]->I in English and ??? in Turkish), or character-specific ([string toupper bizarre-i-from-Turkish-codepage]->some-other-bizarre-char) ? If the latter, [string to*] don't need locale dependency, they just need love and care to properly handle the whole set of Unicode characters.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [4170f3b302] (rid 116193) by nijtmans on 2009-01-30 22:01:23:
- icomment:
There is a document describing this: <http://www.unicode.org/reports/tr21/tr21-5.html#Caseless_Matching> In short, apart from "string tolower", "string toupper" and "string totitle", there should be a new "string fold" which 'folds' the string to a case-insensite form, ready to be compared with another case 'folded' string. The new "string fold" function will do the same as "string tolower" for most locales, but turkish is an example where things are different. Apart from that, I would expect new functions: string is folded $s => [expr {[string fold $s] eq $s}] string is title $s => [expr {[string totitle $s] eq $s}] Looking at the unicode case fonding table: http://www.unicode.org/Public/3.2-Update/CaseFolding-3.2.0.txt It seems that turkish is the only special case. - login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [f31ca7d7ac] (rid 137004) by jan.nijtmans on 2014-02-21 19:09:01:
- assignee changed to: "jan.nijtmans"
Ticket change [624fd45fd7] (rid 192639) by jan.nijtmans on 2021-03-18 20:27:55:
- closer changed to: "nobody"
- comment changed to:
Tcl needs a system for doing case folding and case-insensitive comparisons. Works out as being adding a suitable -locale option to the following commands: lsearch, lsort, regexp, regsub, string compare, string equal, string is (possibly), string match, string tolower, string totitle, string toupper, switch -nocase Possibly also need to consider allowing other things to fit into the locale system (esp. the number handling of [format] and [scan]) but those might be delegatable to another issue. [[THIS FRQ IS BEING USED TO COALESCE OTHERS]]
- icomment:
Let's see if we can start doing something about this.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- severity changed to: "Minor"