.
D 2004-07-01T16:05:03
J assignee andreas_kupries
J cmimetype text/plain
J comment \nTcl_RegisterConfig()\sreceives\sa\s"valEncoding"\nargument\sthat\sspecifies\sthe\sencoding\sfor\nthe\sstring\svalues\sin\sthe\s"configuration"\stable\nof\svalues.\s\sThose\svalues\sare\scopied\sinto\na\sdictionary,\sconverting\sto\sUTF-encoding.\n\nProblem\sarises\swhen\nTcl_GetEncoding(NULL,\svalEncoding)\nreturns\sNULL\s--\sessentially\smeaning\sthe\nappropriate\s*.enc\sfile\sfor\sthat\sencoding\scould\nnot\sbe\sfound.\n\nIn\sthat\scircumstance,\sT_RC\signores\sthe\nencoding\sfailure,\sand\sgoes\sahead\san\nconverts\sthe\sconfig\svalues\saccording\nto\swhatever\sTcl\sthinks\sthe\ssystem\sencoding\nis\sat\sthe\smoment.\s\s\n\nSince\sT_GE()\sfailed,\swe\sknow\sthis\scannot\nbe\sthe\sright\sthing\s--\swe\sare\sdefinitely\sconverting\nbased\son\sthe\swrong\sencoding\s--\sand\sworse,\swe\ncan't\seven\spredict\swhat\swrong\sthing\sT_RC\nwill\sdo\sinstead.\n\nWhen\sthe\s"valEncoding"\scannot\sbe\sfound,\nno\sdata\sshould\sbe\scopied\sover\sto\sthe\ndictionary,\ssince\sit\scannot\sbe\sdone\scorrectly.\nWhether\s[pkgconfig]\sshould\salso\snot\sbe\sdefined,\nor\swhether\sit\sshould\sbe\sdefined\swith\sno\sdata,\nI'm\snot\ssure.\n\n\n\n
J foundin obsolete:\s8.5a2
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 54.\sConfiguration\sReporting
J title Tcl_RegisterConfig\signores\sencoding\sfailure
J type Bug
K 983509ffffffffffffffffffffffffffffffffff
U dgp
Z 7218ad600a7bb8bd8fed99e6624b4485