Fix etags reading of compressed files
commit1f83c3e52480d35b0970d5db95e565f31686d227
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 May 2015 08:35:45 +0000 (23 11:35 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 May 2015 08:35:45 +0000 (23 11:35 +0300)
tree42fd9e23b5bfec403e2e5f636e604f64b208bc20
parentb8e18b63a3270090469b1092dea9520bb2c9a435
Fix etags reading of compressed files

* lib-src/etags.c (O_CLOEXEC) [WINDOWSNT]: Define.
Include fcntl.h, for O_CLOEXEC.
(process_file_name): Don't use 'popen', whose streams cannot be
rewound.  Instead, uncompress the file to a temporary file,
created by 'etags_mktmp', and read from that as usual.
(etags_mktmp): New function.

* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5: Update to be consistent with latest
changes in etags.c regarding reading compressed files.
lib-src/etags.c
test/etags/ETAGS.good_1
test/etags/ETAGS.good_2
test/etags/ETAGS.good_3
test/etags/ETAGS.good_4
test/etags/ETAGS.good_5