]> git.ipfire.org Git - thirdparty/curl.git/commit
cd2nroff: use perl 'strict' and 'warnings'
authorJay Satiro <raysatiro@yahoo.com>
Mon, 29 Jan 2024 23:57:10 +0000 (18:57 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 31 Jan 2024 05:43:21 +0000 (00:43 -0500)
commitf1041adff4922da0c04665b153188b9e55a9fd6d
treeed7f43355f9edffeafeea1ce6668e14837a90c11
parent3e57bc2a84887eb96b0f47ccbe39aa5624192b8b
cd2nroff: use perl 'strict' and 'warnings'

- Use strict and warnings pragmas.

- If open() fails then show the reason.

- Set STDIN io layer :crlf so that input is properly read on Windows.

- When STDIN is used as input, the filename $f is now set to "STDIN".

Various error messages in single() use $f for the filename and this way
it is not undefined when STDIN.

Closes https://github.com/curl/curl/pull/12819
scripts/cd2nroff