<i>string is lower, upper not consistent with Unicode database and other languages</i> status still Open with 3 other changes
by
.
D 2026-09-20T11:31:32.626
J icomment Some\sprecision\son\sPython,\ssince\sit\swas\scited:\sfor\sa\ssingle\scharacter\s<tt>str.islower()</tt>\stests\sthe\sUnicode\sderived\sproperty\s<tt>Lowercase</tt>\s(general\scategory\sLl\splus\s<tt>Other_Lowercase</tt>)\sand\s<tt>str.isupper()</tt>\sthe\s<tt>Uppercase</tt>\sproperty,\swhich\sis\swhat\sthis\sticket\sproposes.\sFor\sa\sstring\sthe\srule\sis\s"all\scased\scharacters\sare\slowercase\sand\sthere\sis\sat\sleast\sone\scased\scharacter",\sso\s<tt>"2a".islower()</tt>\sis\strue,\sbut\s<tt>"2".islower()</tt>\sand\s<tt>"".islower()</tt>\sare\sfalse.\sIt\sis\snot\sthe\sdefinition\sD139\sof\sthe\sstandard\s(toLowercase(X)\s=\sX),\swhich\swould\saccept\s"2"\sand\s"".\n\nNote\sthat\sTcl\sis\salso\sinconsistent\swith\sitself\shere:\s<tt>string\stoupper\s\\u2170</tt>\sgives\s\\u2160\sand\s<tt>string\stoupper\s\\u24d0</tt>\sgives\s\\u24b6\s(both\sare\sOther_Lowercase,\swith\scategories\sNl\sand\sSo),\sbut\s<tt>string\sis\slower</tt>\sreturns\s0\sfor\sthem.\sUsing\sthe\sLowercase\sproperty\swould\smake\s<tt>string\sis\slower</tt>\sagree\swith\s<tt>string\stoupper</tt>.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 1ecea01196a19b73226d5c822e5fdaf22111aa54
U serhiy.storchaka
Z d98885f918fe45c1cdd32ad6539015f3