Ticket UUID: | a7a89d422a4f5dd372e61a75acf5381142dde80 | |||
Title: | Under strict encoding, [gets] returns an error instead of returning the second line | |||
Type: | Bug | Version: | ||
Submitter: | pooryorick | Created on: | 2023-04-14 18:25:42 | |
Subsystem: | - New Builtin Commands | Assigned To: | pooryorick | |
Priority: | 5 Medium | Severity: | Important | |
Status: | Closed | Last Modified: | 2023-04-21 23:04:00 | |
Resolution: | Fixed | Closed By: | pooryorick | |
Closed on: | 2023-04-21 23:04:00 | |||
Description: |
In the following script, the third line of data in the channel contains a byte sequence that is not valid utf-8. [gets] should successfully return two lines before returning an error, but it returns an error instead of returning the second line:
| |||
User Comments: |
jan.nijtmans added on 2023-04-18 06:14:27:
> @pouryorick wrote: I am opposed to the release of Tcl 8.7 ... Well, I'm opposed to the release of Tcl 9.0 while it still contains testcase failures .... ;-) (So, many thanks, @ashok!) apnadkarni added on 2023-04-18 05:20:19: Fixed, I think, by [079d2d5162]. Please review. apnadkarni added on 2023-04-18 02:53:42: Oops, last comment commit should link should have been [5995ca9b6c] apnadkarni added on 2023-04-18 02:52:46: As of commit [] on trunk, io-75.{14,15} are still failing on Windows.
pooryorick added on 2023-04-16 23:24:54: I am opposed to the release of Tcl 8.7 because it has a different alphabet for string values than Tcl 9 does, and releasing it will do more harm than good. Therefore I'm unlikely to spend much time maintaining it. I'd rather see it die an immediate death. pooryorick added on 2023-04-16 13:14:12: I believe commit [7015a9d04911e483] fixes the issue with 75.14 on Windows. jan.nijtmans added on 2023-04-16 09:31:31: This change broke the build on Windows, see: https://github.com/tcltk/tcl/actions/runs/4706656812/jobs/8348035149 2nd remark: Tcl 8.7 has "-profile strict" too, so this should be backported to 8.7 too. Even better: you should develop the fix on 8.7 and forward-merge to 9.0 then. pooryorick added on 2023-04-15 11:57:23:
Fixed in [d481d08ed9]. This commit also ensures that position in file does not change when |
