[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62131] [preconv] should test for non-seekable stream input
From: |
G. Branden Robinson |
Subject: |
[bug #62131] [preconv] should test for non-seekable stream input |
Date: |
Sat, 5 Mar 2022 16:07:45 -0500 (EST) |
Update of bug #62131 (project groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.23.0
_______________________________________________________
Follow-up Comment #2:
commit ecf7aeccbb4e5ecf54277117b503edf27dffbd9f
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Thu Mar 3 05:24:08 2022 +1100
[preconv]: Test operands for seekability.
Stop assuming that the default input stream, or an explicit '-' operand,
is the only unseekable stream. Check instead.
* src/preproc/preconv/preconv.cpp (do_file): Add new Boolean
`is_seekable`. Test the input stream with `fseek()` per a suggestion
from Ingo Schwarze. Report unseekability in debug output and skip
coding tag and uchardet tests altogether (precisely paralleling our
description in the preconv(1) man page). Also update debugging output
to say "<standard input>" instead of "-".
Fixes <https://savannah.gnu.org/bugs/?62131>.
Also add editor aid comments and drop old style Emacs file-local
variable setting.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62131>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/