Tcl Source Code

View Ticket
Login
Ticket UUID: fa128568a597a1971c3a0ea19ec97c19f6e24ef1
Title: EOVERFLOW does not necessarily mean "file too big"
Type: Bug Created on: 2023-03-08 08:52:56
Submitter: chrstphrchvz Assigned to: jan.nijtmans
Subsystem: 52. Portability Support Severity: Minor
Priority: 5 Medium Last modified: 2023-03-28 11:38:19
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2023-03-28 11:38:19
Version: 8.6.13
Description:

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

User Comments:
jan.nijtmans added on 2023-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.nijtmans added on 2023-03-28 11:38:19:

Fixed [47a47502327c0274|here], will be available in 8.7.