Re:Show HN: Stamp turns a folder into a plain text file and ...
by masklinn on Sunday February 07, 2021 @01:43PM
(#26057035)
shar is specifically mentioned in the footer, with the drawback that it's really an arbitrary shell scipt. ptar is also mentioned, and seems rather nice. It's also way better documented[0] though with glaring holes e.g. how does it deal with non-UTF8 file content (it's not clear whether file size or delimiters is relevant, and why you'd have a closing delimiter if the filesize rules), it also specifies file names as UTF8 or ASCII, neither of which is sufficient to handle the full breadth of possible file names.
Re:Show HN: Stamp turns a folder into a plain text file and ...
by hamburglar on Sunday February 07, 2021 @05:23PM
(#26058798)
There are file names that can’t be expressed as UTF8? I’m intrigued.
Re:Show HN: Stamp turns a folder into a plain text file and ...
by brianush1 on Sunday February 07, 2021 @06:00PM
(#26059036)
Posix file names can be any sequence of bytes other than '/' and 0
Re:Show HN: Stamp turns a folder into a plain text file and ...
by hamburglar on Sunday February 07, 2021 @06:23PM
(#26059181)
I guess that's true. I suspect the support for non-UTF8 names in modern tooling is very, very spotty, given how many config files and file formats that refer to other files use UTF-8 themselves. E.g. can you refer to one of these names in an nginx config? (just an example; I have no idea if its config is UTF-8 or not)
Re:Show HN: Stamp turns a folder into a plain text file and ...
by benibela on Sunday February 07, 2021 @06:55PM
(#26059357)
I have a collection of non-utf8 and other problematic files to test such tools:
https://github.com/benibela/nasty-files
You probably cannot clone the repo on Windows. It works well on Linux. But in KDE you could not delete it after checkout
https://en.wikipedia.org/wiki/Shar