summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert unwarranted change in Tcl_CreateChannel() from [1776327edd].pooryorick2023-06-121-2/+2
|
* Merge 8.7jan.nijtmans2023-05-301-19/+18
|\
| * Backport IO-related changes from Tcl 9.0. Needed for preparation of TIP #653jan.nijtmans2023-05-301-50/+61
| |
* | Restore warning-free compilation with C++ compilerjan.nijtmans2023-05-111-2/+2
| |
* | Fix Valgind report of still reachable blocks in aaa_exit.test and other testpooryorick2023-05-111-4/+3
| | | | | | files.
* | Left-over TCL_ENCODING_STRICT, not used any more.jan.nijtmans2023-05-091-1/+1
| | | | | | Add "-profile tcl8" for testcases which don't work in strict profile
* | Make some tests select an encoding profile instead of relying on the default.pooryorick2023-05-041-4/+4
| |
* | Merge 8.7jan.nijtmans2023-05-031-1/+1
|\ \ | |/
| * Changed CHANNEL_PROFILE_* to ENCODING_PROFILE_* and moved out of tclIO.h. ↵apnadkarni2023-05-031-12/+12
| | | | | | | | | | | | | | | | | | See below. For whatever reason, these macros were renamed and moved to tclIO.h post-660. This is inappropriate as those macros deal with *encoding* flags, not *channel* flags and have relevance outside of I/O making their renaming inappropriate. Further putting them in tclIO.h forces inclusion of that header in modules that do not otherwise need that header.
* | Changed CHANNEL_PROFILE_* to ENCODING_PROFILE_* and moved out of tclIO.h. ↵apnadkarni2023-05-031-22/+22
| | | | | | | | | | | | | | | | See below. For whatever reason, these macros were renamed and moved to tclIO.h post-660. This is inappropriate as those macros deal with *encoding* flags, not *channel* flags and have relevance outside of I/O making their renaming inappropriate. Further putting them in tclIO.h forces inclusion of that header in modules that do not otherwise need that header.
* | Fix for [0306a5563c].pointsman2023-05-021-31/+19
| |
* | Fixes the examples given in [0306a5563c]. Still more to do for a full fix.pointsman2023-04-241-0/+1
| |
* | TIP 660 changes to stop warnings in --enable-symbols=mem build.dgp2023-04-191-1/+1
| |
* | Merge trunkapnadkarni2023-04-191-3/+8
|\ \
| * | In DoReadChars() reset CHANNEL_ENCODING_ERROR instead of CHANNEL_BLOCKED.pooryorick2023-04-181-1/+1
| | |
| * | Fix for [25cdcb7e8fb381fb]: Incomplete utf-8 sequence followed by eofcharpooryorick2023-04-181-1/+6
| | | | | | | | | results in failed assertion.
| * | Eliminate unnecessary clearance of CHANNEL_STICKY_EOF flag.pooryorick2023-04-181-1/+1
| | |
| * | Correct CHANNEL_BLOCKED to CHANNEL_ENCODING_ERROR in Tcl_GetsObj().pooryorick2023-04-181-1/+1
| | |
* | | Merge trunkapnadkarni2023-04-181-1/+3
|\ \ \ | |/ /
| * | Fix for [eabcbd08274f2d22], [read] error persists on channel with strictpooryorick2023-04-161-1/+3
| | | | | | | | | encoding after encoding is changed to binary.
* | | Merge trunkapnadkarni2023-04-161-3/+7
|\ \ \ | |/ /
| * | Fix indentingjan.nijtmans2023-04-151-1/+1
| | |
| * | Fix for [a7a89d422a4f5dd3], Under strict encoding, [gets] returns an error ↵pooryorick2023-04-151-2/+7
| | | | | | | | | | | | | | | instead of returning the second line. Also, ensure that position in file does not change if [gets] return an error.
| * | Fix for [0cd1ae596e709259], under strict encoding, [gets] returns an error evenpooryorick2023-04-141-2/+1
| | | | | | | | | though a complete line is available.
* | | Merge trunkapnadkarni2023-04-141-63/+55
|\ \ \ | |/ /
| * | Remove last reference to -nocomplainencoding and fix some spelling errors.pooryorick2023-04-131-2/+2
| | |
| * | Merge 8.7jan.nijtmans2023-04-131-2/+0
| |\ \ | | |/
| | * cherry-pick from trunk: Remove one unnecesary call to Tcl_SetErrno() in ↵jan.nijtmans2023-04-131-8/+10
| | | | | | | | | | | | DoReadChars().
| | * Cherry-pick: Rearrange code blocks in DoReadChars to do less work when ↵jan.nijtmans2023-04-121-69/+71
| | | | | | | | | | | | returning early
| * | Remove one unnecesary call to Tcl_SetErrno() in DoReadChars().pooryorick2023-04-131-6/+8
| | |
| * | Remove unnecessary generation of string representation in DoReadChars.pooryorick2023-04-121-13/+0
| | |
| * | Rearrange code blocks in DoReadChars to do less work when returning early.pooryorick2023-04-121-26/+31
| | |
| * | Correct spelling errors in comments and documentation, but also a ↵pooryorick2023-04-121-29/+29
| |\ \ | | |/ | | | | | | non-comment corrections in history.tcl and tcltest.test.
| | * Correct spelling errors in comments and documentation, but also a non-comment pooryorick2023-04-121-29/+29
| | | | | | | | | corrections in history.tcl and tcltest.test.
| | * Fix for [9ca87e6286262a62], sync fcopy buffers input in ReadChars().pooryorick2023-04-041-5/+7
| | |
| | * Backport CHANNEL_PROFILE_GET() usage fix from 9.0jan.nijtmans2023-03-311-9/+4
| | |
* | | Merge 9.0apnadkarni2023-04-081-40/+34
|\ \ \ | |/ /
| * | Further fix for [fa3d9fd818fa0072]. In ChannelState.encoding, NULL no longerpooryorick2023-04-061-40/+34
| | | | | | | | | represents the binary encoding.
* | | Merge 9.0apnadkarni2023-04-051-40/+70
|\ \ \ | |/ /
| * | Fix for [fa3d9fd818fa0072], [fcopy $chan1 $chan2 -size $size] is not [putspooryorick2023-04-031-35/+63
| | | | | | | | | -nonewline $chan2 [read $chan1 -size $size].
| * | Fix for [9ca87e6286262a62], sync fcopy buffers input in ReadChars().pooryorick2023-04-031-5/+7
| | |
* | | Merge 9.0jan.nijtmans2023-04-011-12/+7
|\ \ \ | |/ /
| * | Correct other CHANNEL_PROFILE_GET() usage as well, which had the same error. ↵jan.nijtmans2023-03-311-10/+3
| | | | | | | | | | | | | | | Further on: 1) profile in inputEncodingFlags is always equal to profile in outputEncodingFlags, so we only have to test one of them 2) We copy from inputchannel to outputchannel, so we - really - only have to test inStatePtr->inputEncodingFlags and outStatePtr->outputEncodingFlags. 3) In Tcl 9 we only want to set sameencoding when both channels are in tcl8 mode
| * | Fix TclCopyChannel() incorrect use of CHANNEL_PROFILE_GET().pooryorick2023-03-311-2/+4
| | |
| * | Merge 8.7jan.nijtmans2023-03-311-1/+1
| |\ \ | | |/
| * | Merge 8.7jan.nijtmans2023-03-301-2/+2
| |\ \ | | |/
| | * Merge 8.6jan.nijtmans2023-03-301-5/+7
| | |\
| | | * Fix [0cb3554903]: macOS 13 SDK deprecates sprintf(). But better not use it ↵jan.nijtmans2023-03-301-5/+7
| | | | | | | | | | | | | | | | on other platforms either.
| | | * Further fix for issue [ea69b0258a9833cb], crash when using a channel ↵pooryorick2023-03-141-7/+23
| | | | | | | | | | | | | | | | transformation on TCP client socket.
| | | * Fix for issue [ea69b0258a9833cb], crash when using a channel transformation onpooryorick2023-03-131-16/+22
| | | | | | | | | | | | TCP client socket.