Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-04-04
14:08
Merge trunk [a9fc9056236f5775] : Fix [fa128568a5]: EOVERFLOW does not necessarily mean "file too big... check-in: e0ef113ce8 user: pooryorick tags: unchained
2023-03-28
11:38 • Closed ticket [fa128568a5]: EOVERFLOW does not necessarily mean "file too b... artifact: dba3432212 user: jan.nijtmans
07:14
Fix [fa128568a5]: EOVERFLOW does not necessarily mean "file too big". Synchronize many error-message... check-in: 47a4750232 user: jan.nijtmans tags: core-8-branch
2023-03-25
20:00
Experimental fix for [fa128568a5]: EOVERFLOW does not necessarily mean "file too big" Let's synchron... check-in: 1e348d39da user: jan.nijtmans tags: bug-fa128568a5
2023-03-24
11:25 • Ticket [fa128568a5] EOVERFLOW does not necessarily mean "file too big"... artifact: 7aff1c33d7 user: jan.nijtmans
2023-03-08
08:52 • New ticket [fa128568a5]. artifact: 694592c3b8 user: chrstphrchvz

EOVERFLOW does not necessarily mean "file too big"

Closed / Fixedfa128568a597a1971c3a0ea19ec97c19f6e24ef1Created 4 years agoUpdated 4 years ago
Descriptionwiki2023-03-08 08:52:56
Tcl_ErrnoMsg() translates EOVERFLOW as "file too big", but there are situations where this message does not make sense. At least one of these is when retrieving the timestamp of a file (even a 0 byte one) which is beyond the range representable by a system's time_t:
% exec touch -d "Wed Jan 01 00:00:00 GMT 2070" foo.text
% file mtime foo.text
could not read "foo.text": file too big
Referenced by3
  • e0ef113ce8Merge trunk [a9fc9056236f5775] : Fix [fa128568a5]: EOVERFLOW does not necessarily mean "file too big". Synchronize many error-messages with what Linux gives nowadays. check-in2023-04-04 14:08:38
  • 47a4750232Fix [fa128568a5]: EOVERFLOW does not necessarily mean "file too big". Synchronize many error-messages with what Linux gives nowadays. check-in2023-03-28 07:14:35
  • 1e348d39daExperimental fix for [fa128568a5]: EOVERFLOW does not necessarily mean "file too big" Let's synchronize the POSIX error-messages with what Linux gives nowadays. check-in2023-03-25 20:00:58
jan.nijtmanswiki2023-03-24 11:25:53

Yes, you have a point. Looking at the 'official' POSIX translation, EOVERFLOW is translated as "Value too large to be stored in data type", which sounds much better. More examples: EILSEQ is translated as "Invalid or incomplete multibyte or wide character", which sounds much better than "Illegal byte sequence"

jan.nijtmanswiki2023-03-28 11:38:19

Fixed [here], will be available in 8.7.

Log in (anonymous is fine) to add a comment.