summaryrefslogtreecommitdiffstats
path: root/library
Commit message (Collapse)AuthorAgeFilesLines
...
* * generic/tclBasic.c:dgp2004-10-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompExpr.c: * generic/tclDictObj.c: * generic/tclEncoding.c: * generic/tclExecute.c: * generic/tclFCmd.c: * generic/tclHistory.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclIO.c: * generic/tclIOCmd.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclPkg.c: * generic/tclResult.c: * generic/tclScan.c: * generic/tclTimer.c: * generic/tclTrace.c: * generic/tclUtil.c: * generic/tclVar.c: * unix/tclUnixFCmd.c: * unix/tclUnixPipe.c: * win/tclWinDde.c: * win/tclWinFCmd.c: * win/tclWinPipe.c: * win/tclWinReg.c: It is a poor practice to directly set or append to the value of the objResult of an interp, because that value might be shared, and in that circumstance a Tcl_Panic() will be the result. Searched for example of this practice and replaced with safer alternatives, often using the Tcl_AppendResult() routine that dkf just rehabilitated. * library/dde/pkgIndex.tcl: Bump to dde 1.3.1 * library/reg/pkgIndex.tcl: Bump to registry 1.1.5
* * generic/tclBasic.c:dgp2004-10-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompExpr.c: * generic/tclDictObj.c: * generic/tclEncoding.c: * generic/tclExecute.c: * generic/tclFCmd.c: * generic/tclHistory.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclIO.c: * generic/tclIOCmd.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclPkg.c: * generic/tclResult.c: * generic/tclScan.c: * generic/tclTimer.c: * generic/tclTrace.c: * generic/tclUtil.c: * generic/tclVar.c: * unix/tclUnixFCmd.c: * unix/tclUnixPipe.c: * win/tclWinDde.c: * win/tclWinFCmd.c: * win/tclWinPipe.c: It is a poor practice to directly set or append to the value of the objResult of an interp, because that value might be shared, and in that circumstance a Tcl_Panic() will be the result. Searched for example of this practice and replaced with safer alternatives, often using the Tcl_AppendResult() routine that dkf just rehabilitated. * library/dde/pkgIndex.tcl: Bump to dde 1.3.1
* many more TIP 173 changesKevin B Kenny2004-09-271-123/+310
|
* Updated America/MontevideoKevin B Kenny2004-09-221-0/+2
|
* fixed a bug where %z was always positive in :localtimeKevin B Kenny2004-09-101-5/+6
|
* * generic/tclTimer.c: Removed a premature optimisation thatKevin B Kenny2004-09-07140-288/+292
| | | | | | | | | | | | | | | | | | | | | attempted to store the assoc data in the client data; the optimisation caused a bug that [after] would overwrite its imports. [Bug 1016167] * library/clock.tcl (InitTZData, ClearCaches): Changed so that the in-memory time zone :UTC (and its aliases) always gets reinitialised, in case tzdata is absent. [Bug 1019537, 1023779] * library/tzdata/*: Regenerated. * tests/clock.test (clock-31.*, clock-39.1): Corrected a problem where the 'system' locale tests fail on a non-English Windows machine. [Bug 1023761]. Added a test to make sure that alias time zones load correctly. [Bug 1023779]. * tools/tclZIC.tcl (writeLinks): Corrected a problem where alias time zone names were written incorrectly, causing them to fail to load at run time. [Bug 1023779]. * win/tclWinTime.c (Tcl_GetTime): Eliminated CPUID tests on Win64 - assuming that HAL vendors now do a better job of keeping the performance counters synchronized among CPU's. [Bug 1020445]
* * library/auto.tcl: Updated [tcl_findLibrary] search pathdgp2004-08-231-19/+47
| | | | to include any [<pkg>::pkgconfig get scriptdir,runtime] directory, as well as the $::auto_path. [RFE 695441]
* * library/clock.tcl (format): Changed default timezone format Kevin B Kenny2004-08-191-2/+2
| | | | | | | from alphabetic to numeric to produce scannable times in more locales. * tests/clock.test (clock-37.1): Removed now-unused 'needPST' constraint and the comments that refer to it.
* * library/init.tcl: Integrated TIP #189. We source a separate fileandreas_kupries2004-08-182-1/+353
| | | | | | | | | | | | (see below), instead of inlining the contents of that file. This should beeasier to maintain, and easier to backport/install in 8.4 installations. Note: Usage of Tcl Modules is restricted to non-safe interps. It cannot be loaded into a safe interp. * library/tm.tcl: New file, the v2 reference implementation for TIP #189, Tcl Modules.
* unbreak Win build after TIP#173 and TIP#209 commitKevin B Kenny2004-08-181-23/+65
|
* TIP #173 and #209 implementation - see ChangeLog for detailsKevin B Kenny2004-08-18674-1/+54336
|
* * library/msgcat/msgcat.tcl: Added checks to prevent [mclocale]dgp2004-08-131-2/+7
| | | | | * tests/msgcat.test: from registering filesystem paths to possibly malicious code to be evaluated by a later [mcload].
* * library/package.tcl (pkg_mkIndex): Updated [pkg_mkIndex] todgp2004-08-021-20/+11
| | | | make use of [glob -directory $dir -tails] and return options.
* * tests/safe.test (safe-2.1): Disabled senseless test. [Bug 999612]dgp2004-07-302-7/+4
| | | | | | * library/auto.tcl (auto_reset): Removed "protected" list of commands from [auto_reset]. All entries in the auto_index can be re-loaded. * library/package.tcl: Updated comment to reflect 2004-07-28 commit.
* * library/package.tcl: [::pkg::create] is now an alias. Testdgp2004-07-291-9/+2
| | | | safe-2.1 will now fail until Bug 999612 is corrected.
* * library/package.tcl: Moved private commanddgp2004-07-282-13/+19
| | | | | | * library/tclIndex: [pkg_compareExtension] into ::tcl::Pkg. * tests/pkg_mkIndex.test: Also moved implementation of [::pkg::create] to [::tcl::Pkg::Create].
* Fix [Bug 981733]; bizarre resolver brokenness strikes again!dkf2004-06-291-2/+6
|
* * doc/library.n: Moved variables ::auto_oldpath anddgp2004-06-162-11/+14
| | | | | * library/auto.tcl: ::unknown_pending into ::tcl namespace. * library/init.tcl: [Bugs 808319, 948794]
* * unix/tclUnixInit.c: The routines Tcl_Init() and TclSourceRCFile()dgp2004-06-111-2/+2
| | | | | | | | | | * win/tclWinInit.c: had identical implementations for both win and * generic/tclInterp.c: unix. Moved to a single generic implementation. * generic/tclMain.c: * library/init.tcl: * generic/tclInitScript.h (removed): * unix/Makefile.in: * win/tcl.dsp:
* * library/tcltest/tcltest.tcl: Correction to debug prints and testingdgp2004-05-261-2/+1
| | | | | | | | * library/tcltest/pkgIndex.tcl: if TCLTEST_OPTIONS value. Corrected * tests/tcltest.test: double increment of numTestFiles in -singleproc 1 configurations. Updated tcltest-19.1 to tcltest 2.1 behavior. Corrected tcltest-25.3 to not falsely report a failure in tcltest.test. Bumped to tcltest 2.2.6. [Bugs 960560, 960926]
* * library/tcltest/tcltest.tcl: Correction to debug prints and testingdgp2004-05-262-6/+6
| | | | | | * library/tcltest/pkgIndex.tcl: if TCLTEST_OPTIONS value. Updated * tests/tcltest.test: tcltest-19.1 to tcltest 2.1 behavior. Bumped to tcltest 2.2.6.
* * doc/http.n (http::config): add -urlencoding option (default utf-8)hobbs2004-05-252-19/+20
| | | | | | | | | * library/http/http.tcl: that specifies encoding conversion of * library/http/pkgIndex.tcl: args for http::formatQuery. Previously * tests/http.test: undefined, RFC 2718 says it should be utf-8. 'http::config -urlencoding {}' returns previous behavior, which will throw errors processing non-latin-1 chars. Bumped http package to 2.5.0.
* * library/init.tcl: Corrected unique prefix matching ofdgp2004-05-031-3/+12
| | | | interactive command completion in [unknown]. [Bug 946952]
* * doc/msgcat.n: Clarified message catalog file encodings. [Bug 811457]dgp2004-03-311-7/+15
| | | | | | | | | | | | | | * library/msgcat/msgcat.tcl: Updated internals to make use of [dict]s to store message catalog data and to use [source -encoding utf-8] to access catalog files. Thanks to Michael Sclenker. [Patch 875055, RFE 811459] Corrected [mcset] to be able to successfully set a translation to the empty string. [mcset $loc $src {}] was incorrectly set the $loc translation of $src back to $src. Also changed [ConvertLocale] to minimally require a non-empty "language" part in the locale value. If not, an error raised prompts [Init] to keep looking for a valid locale value, or ultimately fall back on the "C" locale. [Bug 811461]. * library/msgcat/pkgIndex.tcl: Bump to msgcat 1.4.1.
* * library/msgcat/msgcat.tcl: Updated internals to make use ofdgp2004-03-312-36/+53
| | | | | | | * library/msgcat/pkgIndex.tcl: [dict]s to store message catalog data and to use [source -encoding utf-8] to access catalog files. Thanks to Michael Sclenker. Also corrects bug to allow translation to an empty string. Bump to msgcat 1.4.1. [Patch 875055]
* Reverted changes to tcltest so that it can still support Mac whendgp2004-03-171-1/+4
| | | | copied to Mac systems (only requires Tcl 8.3).
* Removed support for Mac OS Classic platform [Patch 918142]das2004-03-176-121/+8
|
* Added TIP #100 support to the registry package (patch #903831)patthoyts2004-03-041-2/+2
| | | | | This provides a Windows test of the TIP #100 mechanism and a sample to show how unloading an extension can be done.
* * doc/tcltest.n:dgp2004-02-181-2/+2
| | | | | | * library/tcltest/tcltest.tcl: Changed -verbose default value to {body error} so that detailed information on unexpected errors in tests is provided by default, even after the fix for [Bug 725253]
* * library/tcltest/tcltest.tcl: Corrected references todgp2004-02-041-3/+3
| | | | non-existent $name variable in [cleanupTests]. [Bug 833637]
* * library/tcltest/tcltest.tcl: Corrected parsing of singledgp2004-02-032-4/+9
| | | | | command line argument (option with missing value) [Bug 833910] * library/tcltest/pkgIndex.tcl: Bump to version 2.2.5.
* filesystem fixes for '-force' consistency and picky compilersvincentdarley2004-01-291-5/+12
|
* * doc/ParseCmd.3: Implementation of TIP 157. Adds recognitiondgp2003-11-143-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Tcl.n: of the new leading {expand} syntax on words. * generic/tcl.h: Parses such words as the new Tcl_Token type * generic/tclBasic.c: TCL_TOKEN_EXPAND_WORD. Updated Tcl_EvalEx * generic/tclCompile.c: and the bytecode compiler/execution engine * generic/tclCompile.h: to recognize the new token type. New opcodes * generic/tclExecute.c: INST_LIST_VERIFY and INST_INVOKE_EXP and a new * generic/tclParse.c: operand type OPERAND_ULIST1 are defined. Docs * generic/tclTest.c: and tests are included. * tests/basic.test: * tests/compile.test: * tests/parse.test: * library/auto.tcl: Replaced several [eval]s used to perform * library/package.tcl: argument expansion with the new syntax. * library/safe.tcl: In the test files lindex.test and lset.test, * tests/cmdInfo.test: replaced use of [eval] to force direct * tests/encoding.test: string evaluation with use of [testevalex] * tests/execute.test: which more directly and robustly serves the * tests/fCmd.test: same purpose. * tests/http.test: * tests/init.test: * tests/interp.test: * tests/io.test: * tests/ioUtil.test: * tests/iogt.test: * tests/lindex.test: * tests/lset.test: * tests/namespace-old.test: * tests/namespace.test: * tests/pkg.test: * tests/pkgMkIndex.test: * tests/proc.test: * tests/reg.test: * tests/trace.test: * tests/upvar.test: * tests/winConsole.test: * tests/winFCmd.test:
* * library/dde/pkgIndex.tcl: Added safeguards so that registrydgp2003-11-102-4/+6
| | | | | | | | | | | | * library/reg/pkgIndex.tcl: and dde packages are not offered * win/tclWinDde.c: on non-Windows platforms. Bumped to * win/tclWinReg.c: registry 1.1.3 and dde 1.3. * win/Makefile.in: * win/configure.in: * win/makefile.bc: * win/makefile.vc: * win/configure: autoconf (2.57)
* update msgcat version to 1.4dgp2003-10-211-1/+1
|
* TIP #156: Language-Neutral Root Locale for MsgcatKevin B Kenny2003-10-211-2/+6
|
* * generic/tclBasic.c (TclAppendObjToErrorInfo): New internal routinedgp2003-10-141-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | that appends a Tcl_Obj to the errorInfo, saving the caller the trouble of extracting the string rep. * generic/tclStringObj.c (TclAppendLimitedToObj): New internal routine that supports truncated appends with optional ellipsis marking. This single routine supports UTF-8-safe truncated appends needed in several places throughout the Tcl source code, mostly for error and stack messages. Clean fix for [Bug 760872]. * generic/tclInt.h: Declarations for new internal routines. * generic/tclCmdMZ.c: Updated callers to use the new routines. * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclParseExpr.c: * generic/tclProc.c: * generic/tclStringObj.c: * mac/tclMacResource.c: * library/init.tcl: Updated ::errorInfo cleanup in [unknown] to reflect slight modifications to Tcl_LogCommandInfo(). Corrects failing init-4.* tests.
* Correctly check the types of boolean options to http::geturl [Bug 811170]dkf2003-09-291-7/+14
|
* package unknown performance on MacOS and MacOS Xvincentdarley2003-09-241-11/+78
|
* * library/init.tcl (auto_load, auto_import): Expanded Eric Melski'sdgp2003-09-231-16/+17
| | | | | | 2000-01-28 fix for [Bug 218871] to all potentially troubled uses of [info commands] on input data, where glob-special characters could cause problems.
* Fixed comment typos.patthoyts2003-09-151-6/+6
|
* * library/opt/optparse.tcl: Latest revisions caused [OptGuessType]dgp2003-09-101-3/+3
| | | | | | to guess "int" instead of "string" for empty strings. Missed the required "-strict" option to [string is]. Thanks to Revar Desmera. [Bug 803968]
* * library/msgcat/msgcat.tcl: Added escape so that non-Windowsdgp2003-08-062-5/+12
| | | | | | * library/msgcat/pkgIndex.tcl: platforms do not try to use the registry package. This can save a costly and pointless package search. Bumped to 1.3.1. Thanks to "imdave1". [Bug 781609].
* * library/package.tcl: Fixed a typo that broke pkg_mkIndex -verbose.rmax2003-07-241-2/+2
| | | | * tests/pkgMkIndex.test: Added a test for [pkg_mkIndex -verbose].
* * win/tclWinReg.c: Incremented the version to 1.1.2.patthoyts2003-07-231-2/+2
| | | | * library/reg/pkgIndex.tcl:
* * doc/tcltest.n: Restored the [Eval] proc to replacedgp2003-07-181-16/+6
| | | | | | | | | | * library/tcltest/tcltest.tcl: the [::puts] command when either the -output or -error option for [test] is in use, in order to capture data written to the output or error channels for comparison against what is expected. This is easier to document and agrees better with most user expectations than the previous attempt to replace [puts] only in the caller's namespace. Documentation made more precise on the subject. [Bug 706359]
* * library/http/pkgIndex.tcl: upped to http v2.4.4hobbs2003-07-182-5/+7
| | | | | * library/http/http.tcl: add support for user:pass info in URL. * tests/http.test: [Bug 759888] (shiobara)
* * library/safe.tcl (FileInAccessPath): normalize paths beforehobbs2003-07-161-2/+10
| | | | comparison. [Bug 759607] (myers)
* * library/tcltest/tcltest.tcl (ProcessFlags): Corrected broken calldgp2003-07-162-4/+4
| | | | | * library/tcltest/pkgIndex.tcl: to [lrange]. Bumped to version 2.2.4. [Bug 772333]
* * library/package.tcl: Corrected [pkg_mkIndex] bug reported ondgp2003-07-111-3/+7
| | | | | comp.lang.tcl. The indexer was searching for newly indexed packages instead of newly provided packages.