On 5/9/25 16:45, Nikolaos Chatzikonstantinou wrote:
[...]
I'm worried about:
1. What mode GNU m4 opens files in; m4p always open in binary,
potentially treating carriage return differently on Windows.
A quick glance through the C code
(<URL:http://git.savannah.gnu.org/cgit/m4.git/tree/src?h=branch-1.4>)
confirms that at least the input files mentioned on the command line are
opened in text mode. (The process_file function in m4.c calls
m4_path_search with the "binary" argument false.)
Searching the code for "m4_path_search" and examining how each call to
that function is reached should answer your questions on this topic.
-- Jacob