.
D 2012-01-09T22:07:32
J icomment >I\sthink\sthat\swhen\sTcl_FSEvalFileEx()\n>receives\sa\snon-NULL\svalue\sof\sencodingName,\n>that\srequest\sought\sto\sbe\shonored.\n\nAgreed,\sbut\sit's\sa\slittle\sbit\strickier.\sIf\sthe\suser\nexplicitly\sspeciefies\s"utf-8"\sor\s"unicode"\sthat\nshould\sbe\shonored\stoo.\n\nActually,\sI\sam\sthinking\sabout\ssplitting\nthe\sfunctionality\sbetween\sTcl_FSEvalFileEx\nand\sthe\sencoding\smachinery.\n\nCurrently\sthe\sencoding\s""\sis\ssynonymous\swith\sthe\nsystem\sencoding.\sWe\scould\salso\screate\san\nadditional\sencoding\swith\sthe\sname\s"",\swhich\nreads\sthe\sfirst\s2/3/4\sbytes\sto\ssee\sif\sit\sis\ssome\skind\nof\sBOM.\sIf\sit\sis,\sswitch\sto\sthe\scorresponding\nencoding\s(utf-8,\sutf-16,\s....)\sotherwise\sgo\son\nusing\sdefault\ssystem\sencoding.\sThen\sthe\nonly\sthing\sleft\sto\sbe\sdone\sin\sTcl_FSEvalFileEx\nis\sto\sstrip\sthe\sBOM.\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 3466099fffffffffffffffffffffffffffffffff
U nijtmans
Z 1f1fdd397e1d99f0cc16203ca9b5a407