1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

Fix generation of TAGS from compressed files (Bug#19735)

lib-src/etags.c (process_file_name) [!DOS_NT]: Use "r", not "rb" in the
 call to 'popen'.
This commit is contained in:
Eli Zaretskii 2015-02-19 18:13:31 +02:00
parent 37e3549055
commit d10c3edaf2
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-02-19 Eli Zaretskii <eliz@gnu.org>
* etags.c (process_file_name) [!DOS_NT]: Use "r", not "rb" in the
call to 'popen'. (Bug#19735)
2015-02-13 Paul Eggert <eggert@cs.ucla.edu>
Better support for future plugins

View File

@ -1532,7 +1532,14 @@ process_file_name (char *file, language *lang)
if (real_name == compressed_name)
{
char *cmd = concat (compr->command, " ", real_name);
/* Unix implementations of 'popen' generally don't support "rb", whereas
DOS_NT needs it. */
#ifdef DOS_NT
inf = popen (cmd, "rb");
#else
inf = popen (cmd, "r");
#endif
free (cmd);
}
else