Re: m4p: an implementation of GNU m4 in Python

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux