On 08/11/14 20:43, Eli Zaretskii wrote:
>> Any chance to have some code in `nonposix.h' to avoid this?
> Please suggest how.  do_file more often than not accepts strings given
> by 'const char *', so it is not possible to modify the string itself.
> What else can I do?

Maybe make the *implementation* of dos2unix_filename() conditional?
Such that it would be a no-op, in those cases where it should not
transform its argument?  Thus, you could call it unconditionally, and
the conditional implementation would DTRT for each case.


Reply via email to