Skip to content
Tcl Source Code Artifact [73c27d860d]
Login

Artifact [73c27d860d]

Artifact 73c27d860d0d3e689d0bd56ab90d4af6a96aad93:

Ticket change [73c27d860d] - New ticket [218793ffffffffff|218793ffff] <i>use strtol_magic for optional Octal conversion</i>. by nobody on 2000-10-26 01:05:25.
D 2000-10-26T01:05:25
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2145\sRFE\nVersion:\s8.1\nSubmitDate:\s'1999-06-03'\nLastModified:\s'1999-12-09'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nRelatedBugIDs:\s1726\nOS:\sAIX\nMachine:\sRS6000\nFixedDate:\s'1999-12-09'\nFixedInVersion:\s8.3b1\nClosedDate:\s'2000-10-25'\n\n\nName:\nPhil\sDietz\n\nDesiredBehavior:\nMany\speople\swould\slike\sto\ssee\sOctal\sconversion\sbe\soptional.\n\s\s\s\sDonal\sFellows\shas\sposted\sa\sstrtol_magic\sfunction\son\sdejanews.com\sthat\n\s\s\s\sdoes\sjust\sthat.\n\s\s\s\s\n\s\s\s\sThanks.\n\nPatchFiles:\nlong\sstrtol_magic(const\schar\s*str,\schar\s**endptr,\sint\sbase)\s{\n\s\s\s\s\s\s\s\s\s\sextern\sint\snoOctal;\n\s\s\s\s\s\s\s\s\s\sif\s(base!=0\s||\snoOctal!=0\s||\s(str[0]=='0'\s&&\sstr[1]=='x'))\s{\n\s\s\s\s\s\s\s\sreturn\sstrtol(str,\sendptr,\sbase);\n\s\s\s\s\s\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\sreturn\sstrtol(str,\sendptr,\s10);\n\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s}\n\n\n\nThis\sis\sbeing\sseriously\sconsidered\sfor\s8.3.\s\sIt\swould\sbe\sbetter\nif\sit\scame\sas\sa\sdrop-in\spatch\sto\s8.2.0\sthat\ssupported\ssome\ssort\nof\stcl_useOctal\svar\sthat\smaintained\sthe\sold\sbehavior\sby\sdefault.\s\n--\s08/20/1999\shobbs\nTcl\s8.3\shas\sgreatly\simproved\serror\smessages\sfor\soctals\s(if\syou\nmade\san\serror\sbecause\sof\sa\sbad\soctal,\syou'll\sknow\sit\swithout\nquestion).\s\sThe\sidea\sof\sa\sglobal\sswitch\sto\sperterb\sbehavior\swas\nnot\sgenerally\spopular,\sso\swe're\sgoing\swith\sthe\sbetter\serror\nmessages,\sand\smay\sconsider\ssomething\selse\sfor\sTcl9,\swhen\swe\ncan\sbe\smore\slax\son\sbackwards\scompatibility.\s\n--\s12/09/1999\shobbs
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 07.\sVariables
J title use\sstrtol_magic\sfor\soptional\sOctal\sconversion
J type Bug
K 218793ffffffffffffffffffffffffffffffffff
U nobody
Z f81dcddbc254f5959dc2778e250fb775