> Date: Sat, 08 Nov 2014 21:03:29 +0100 (CET) > Cc: groff@gnu.org > From: Werner LEMBERG <w...@gnu.org> > > > > OK, here's the proposed patch and the log entries: > > Thanks. > > > 2014-11-08 Eli Zaretskii <e...@gnu.org> > > > > Fix handling of MS-Windows quoting and file names with backslashes. > > * src/preproc/soelim/soelim.cpp (do_file): > > * src/preproc/refer/refer.cpp (do_file): > > * src/preproc/preconv/preconv.cpp (do_file): > > * src/preproc/pic/main.cpp (do_file): > > * src/preproc/eqn/main.cpp (do_file) > > [__MSDOS__ || (_WIN32 && !__CYGWIN__)]: Call dos2unix_filename to > > convert backslashes in the file name being processed to forward > > slashes. > > I'm not happy to have so many preprocessor conditionals.
You mean in so many different places? Or just the 3 symbols the conditional uses? > 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?