Bug #3541
Use Windows-compatible filenames
100%
Description
In "Digital Video Recorder Profiles" there is a useful option "Use Windows-compatible filenames" who does his job but does not control the length of the file name that should not exceed 255 characters and have a maximum of 260 for the full path.
History
Updated by Jaroslav Kysela almost 9 years ago
I was not aware about the 260 characters limit in windows.. Really silly implementation of the filesystem.
The maximum filename length checking is resolved in the 4.1 code.
Updated by Adriano Catapano almost 9 years ago
We are talking about windows, the file system is not the most serious problem.
Version 4.1 is not in release/stable build type?
Updated by Jaroslav Kysela almost 9 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|cfbda5eb55cf368b619a24394071469b9947c96a.
Updated by Jaroslav Kysela almost 9 years ago
I hardcoded the 255 filename limit for 4.1 when use windows compatible filenames is active (because pathconf(filename, _PC_NAME_MAX) returns a large value for VFAT -unicode characters, so it's unusable).
The directory path handling is more difficult (check the mountpoint for vfat). I would suggest to handle this at the administrator level (ensure that the total filename length won't cross this limit - I added $99t and $99s format strings for title/subtitle where 99 is the limit number - 99 is only example - for the filename specification).