Skip to content
Tcl Source Code Artifact [ba244ab117]
Login

Artifact [ba244ab117]

Artifact ba244ab117f4735dc214a2121189aa564ba2db30:

Ticket change [ba244ab117] - Ticket [1511357fffffffff|1511357fff] <i>non-ASCII function names rejected</i> status still Open with 5 other changes by kennykb on 2006-07-31 00:56:33.
D 2006-07-31T00:56:33
J assignee dgp
J icomment Logged\sIn:\sYES\s\nuser_id=99768\n\nHmmm.\s\sI\slike\sthe\sidea\sin\sgeneral,\sbut\sI\sthink\sthat\swe\nreally\sought\sto\swrite\sa\sTIP\sto\saddress\sthese\sissues\sacross\nthe\sboard.\s\sThere\sare\ssubtle\sincompatibilities\shere,\smany\nof\swhich\scome\sup\sin\serror\sreporting;\show\sdo\syou\spost\san\nerror\sdialog\sor\swrite\sa\smessage\sto\sstderr\sreporting\san\nunknown\smathfunc\swhose\sname\sisn't\sin\sthe\snative\scharacter\nset?\s\s(I\sknow\sthat\swe\scan\saddress\sthese\sissues,\sbut\swe\nneed\sto\sthink\sabout\sthem.)\n\nIn\saddition\sto\smath\sfunction\snames,\sthe\sissues\sof\ninternational\scharacters\sin\sTcl\ssource\scode\sof\swhich\sI'm\naware\sare:\n\n-\sVariable\snames\sand\s$-substitution\s-\sBug\s408568.\sThere\n\s\sappears\sto\sbe\sno\sgood\sreason\sthat\swe\sshouldn't\sallow\sa\s\n\s\svariable\snamed\sby\sa\sGreek\sletter,\sfor\sinstance.\n\n-\sNumeric\sdigits\s-\sshould\swe\srecognize\sequivalents\n\s\sfor\sthe\sIndo-Arabic\sdigits\s(Half-width\sand\sfull-width\n\s\sdigits,\sArabic/Thai/Devanagari\spresentation\sforms\sof\n\s\sthe\sdigits,\s...)?\s\s[I'm\snot\ssuggesting\sdealing\swith\n\s\snon-positional\snotations\slike\sChinese\sor\sJapanese,\n\s\salthough\swe\scould\sargue\swhether\s[string\sis\sdigit]\n\s\sought\sto\srecognize\sthese,\stoo.]\s\sThis\swould\saffect\snot\n\s\sonly\s[expr]\sand\sits\sfriends\splus\s[scan]/[format]\setc,\n\s\sbut\salso\sbits\slike\sfield\slengths\sin\s[binary\sscan].\n\s\sI'm\sa\slittle\snervous\sabout\sextending\sthings\sthis\sfar;\n\s\sdo\swe\sreally\swant\sto\sinflict\sthe\smaintainability\sissues\n\s\sthat\sallowing\snumbers\son\snon-European\sscripts\swould\n\s\simpose?\n\n-\sWhitespace.\sThere\sare\sa\snumber\sof\splaces\swhere\swe\slook\n\s\sat\s'isspace'\sand\sfail\sto\scount\sthe\svarious\sUnicode\n\s\swhitespace\scharacters\s(breaking\sand\snonbreaking\sspaces\n\s\sof\svarious\swidths).\s\s(I've\sbeen\sbitten\sby\sthis\sone\n\s\salready,\swhen\sa\sTcl\ssource\sfile\swas\sedited\sin\sa\sUnicode\n\s\seditor,\sand\ssomehow\stwo\swords\sgot\sseparated\sby\sa\sstring\n\s\sof\shalf-width\sspaces.\n\n-\sDon't\seven\sget\sme\sstarted\son\sUnicode\scollation,\n\s\snormalization,\scase\smapping,\scomparison,\s....\s\sWe\swill\n\s\slikely\swant\sto\sbegin\saddressing\sthese\ssomeday,\sbut\n\s\sthat\sought\sto\sbe\sa\sseparate\sproject\sfrom\sallowing\si18n\n\s\sof\sour\sown\ssources.\n\nIn\saddition,\swe\swill\sneed\sto\spursue\smaking\sinternational\nvariable\sand\sfunction\snames\stypable\sin\scharacter\ssets\sthat\nlack\sthe\scharacters.\s\sRight\snow,\sbackslash\ssubsitiution\nhappens\sat\sthe\swrong\stimes\sor\snot\sat\sall:\n\n%\sexpr\s{s\\u0069n(3.14159)}\ninvalid\sbareword\s"s"\sin\sexpression\n\s\s\s\s(prepend\s$\sfor\svariable;\sappend\sargument\slist\sfor\nfunction\scall)\n\s\s\s\s(parsing\sexpression\s"s\\u0069n(3.14159)")\n%\sexpr\s"s\\u0069n(3.14159)"\n2.653589793352726e-6\n\n%\sset\si\s1\n1\n%\sputs\s$\\u0069\n$i\n%\sputs\s[set\s\\u0069]\n1\n%\sputs\s${\\u0069}\ncan't\sread\s"\\u0069":\sno\ssuch\svariable\n\nIn\ssummary:\sThis\smay\swell\sbe\sa\sgreat\sidea\swhose\stime\sis\ncome,\sbut\sI'm\sprofoundly\suncomfortable\sabout\sdoing\sit\nwithout\sa\sTIP.\n\n\n
J login kennykb
J mimetype text/plain
J username kennykb
K 1511357fffffffffffffffffffffffffffffffff
U kennykb
Z 199715c1b33850a0e46cec3ea2921ce8