[GNC] Fwd: Gnucash
Jeff
GnuCash-List at ratherbe.info
Fri Aug 25 22:52:37 EDT 2023
On 26/8/23 11:46, Stan Brown (using GC 4.14) wrote:
> On 2023-08-25 16:30, Maf. King wrote:
>> I've just had a thought on a possible reason the original file could not be
>> saved. I may be barking up the wrong tree.....
>>
>> Does Win have a maximum length for a filename?
> It does, both for filename specifically (see below) and for total of
> path+filename. But recent versions of Windows have
> increased it to the point where real-life use is unlikely to hit the limit.
>
> However, "In the Windows API [for use by applications, as opposed to
> components of Windows itself], the maximum length for a path is
> MAX_PATH, which is defined as 260 characters. A local path is structured
> in the following order: drive letter, colon, backslash, name components
> separated by backslashes, and a terminating null character."
That limit does still exist, I have just been dealing with it where a
particular file would not open in LibreOffice Writer due to the limit
(actually it would open if LibreOffice was open and the file was opened
from inside LibreOffice, but it would not open if double clicked, while
all other (shorter) files opened fine via both methods). It also did
strange things at the File Explorer level, such as not allowing the file
to copied to the same folder, with a suggested name change. So the
issue affected both 3rd Party apps (LibreOffice) and Windows core apps
(Explorer). I could see the possibility of the issue affecting GnuCash.
> I doubt that file save dialogs are be affected by that, since they're
> part of Windows, but maybe.
May well be, as above.
> Later in the same article, there is a procedure to remove that
> limitation in the Windows API, if you're in Windows 10 or 11. I hesitate
> to suggest that Barry try that procedure himself, because it involves
> editing the Windows Registry. However, anyone who's comfortable with
> Registry edits could easily follow the directions to do it for him.
Unfortunately the registry change isn't honoured by all apps. Some have
the newly increased limit, and some don't.
This may or may not be the issue with OP, but there is a fair chance
that the maximum limit has been reached.
Regards,
Jeff.
More information about the gnucash-user
mailing list