3809968193
Pkgsrc changes: Change pkg revision to include iso patch revision. iso255 8/30/05 Joined with less-378. iso256 8/30/05 Joined with less-381. iso257 9/4/05 Fixed problems caused by merge. Changed buffering mechanism to track exact POSITION through code set conversion. This helped hiliting routine and improved less running speed. Changed to parse text from the beginning of physical line when less jumps into the middle of text. This fixed major problems on stateful text like ISO-2022. Fixed JIS X 0213:2000 related problems. Thanks to Takeshi WATANABE. Also, fixed a problem reported by him. Less will not split one wrong multi-byte character into different lines even if it is not fit in first line. Less moves entire text to second line. iso258 9/4/05 Joined with less-382. iso259 9/6/05 Changed an algorithm to detect the gap of parsing input stream. This fixed a problem on long JIS/English text. Fixed '\r' problem. iso260 9/19/05 Changed the algorithm handling input and output character sets. Now jless use two variables, one represents supporting character sets for input stream, and the other represents encoding scheme for output stream. Changed to support JISX0213:2004. iso261 2/24/06 Changed put_wrongmark function to make it work with new iso260 buffering semantics. And applied a patch provied by Takuji. Thanks to Takuji. iso262 2/24/06 Removed POSITION variable from member variables of M_BUFDATA. It was added to make multi-byte character buffering function work better with less. However, it degraded abstraction level of data structure (multi.h). This time, add POSITION* as an additional argument of few functions and keep data structure as simple as possible. This modification make regex_cs-lwp9k be able to compile.
14 lines
332 B
Text
14 lines
332 B
Text
$NetBSD: patch-af,v 1.1 2008/02/04 14:34:10 obache Exp $
|
|
|
|
--- edit.c.orig 2008-02-04 13:36:20.000000000 +0000
|
|
+++ edit.c
|
|
@@ -706,7 +706,8 @@ use_logfile(filename)
|
|
*/
|
|
filename = shell_unquote(filename);
|
|
exists = open(filename, OPEN_READ);
|
|
- close(exists);
|
|
+ if (exists >= 0)
|
|
+ close(exists);
|
|
exists = (exists >= 0);
|
|
|
|
/*
|