public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Package pinfo-0.6.10 - fix for very old bug
@ 2019-06-05  8:55 Henning
  2019-06-06 15:17 ` Andrew Schulman
  0 siblings, 1 reply; 5+ messages in thread
From: Henning @ 2019-06-05  8:55 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

In src/parse_confic.c there are two typos which cause an error message

	Parse error in config file on line nnn

if you try to assign function keys f9 or f10 using the usual KEY_F(<n>)
syntax. These two require KEY_(F<n>).
This bug was present as early as 2002 and is still present in the latest
version 0.6.13.

The attached patch applies to 0.6.10 (the current version in cygwin) and
also to 0.6.13. I've also sent it to the maintainer, Bas Zoetekouw. So
it might be taken intp account in 0.6.14.

Henning




[-- Attachment #2: f9f10.diff --]
[-- Type: text/plain, Size: 544 bytes --]

--- a/src/parse_config.c	2006-06-24 17:16:14.000000000 +0200
+++ b/src/parse_config.c	2019-06-04 21:29:14.902420800 +0200
@@ -867,9 +867,9 @@
 					*key = KEY_F(7);
 				else if (!(strncmp(temp + 4, "F(8)", 4)))
 					*key = KEY_F(8);
-				else if (!(strncmp(temp + 4, "(F9)", 4)))
+				else if (!(strncmp(temp + 4, "F(9)", 4)))
 					*key = KEY_F(9);
-				else if (!(strncmp(temp + 4, "(F10)", 5)))
+				else if (!(strncmp(temp + 4, "F(10)", 5)))
 					*key = KEY_F(10);
 				else if (!(strncmp(temp + 4, "F(11)", 5)))
 					*key = KEY_F(11);

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-13 14:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-05  8:55 Package pinfo-0.6.10 - fix for very old bug Henning
2019-06-06 15:17 ` Andrew Schulman
2019-06-08  8:06   ` Henning
2019-06-08 13:36     ` Henning
2019-06-13 14:41   ` Henning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).