prevent relatedTemplate from truncating a filename to end in whitespace
authorJoey Hess <joeyh@joeyh.name>
Mon, 23 Jun 2025 17:31:15 +0000 (13:31 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 23 Jun 2025 17:31:15 +0000 (13:31 -0400)
commit2007507e2bf1cdc81ca678972c44a017f198cee9
tree663ef6a7c04d627032c7d06c3ceb86767341f42e
parent6818e69b81b154b82e8591089f60b4a91eff2b47
prevent relatedTemplate from truncating a filename to end in whitespace

Avoid a problem with temp file names ending in whitespace on filesystems
like VFAT that don't support such filenames.

See a6eb7d73398fc1729faec663c1822023e540643b previously for the same but
with "."

At some point relatedTemplate is more bother than it's worth and it would
be simpler to just use "temp" as the basename of all temp files. We seem to
be approaching that point, since my interest in absurd ancient filesystem
limitations is limited.

Sponsored-by: unqueued on Patreon
CHANGELOG
Utility/Tmp.hs
doc/bugs/openTempfile_invalid_argument_on_sd_card.mdwn