Date: Sun, 26 Mar 2006 20:25:33 +0200 (CEST) From: "Frank W. Josellis" <frank@dynamical-systems.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ijliao@FreeBSD.org Subject: ports/94972: games/sudoku - saving a game does not work Message-ID: <200603261825.k2QIPXQ7006269@pollux.senax.net> Resent-Message-ID: <200603261830.k2QIUFCW091948@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 94972 >Category: ports >Synopsis: games/sudoku - saving a game does not work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 26 18:30:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Frank W. Josellis >Release: FreeBSD 5.5-PRERELEASE i386 >Organization: >Environment: System: FreeBSD pollux.senax.net 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #5: Fri Mar 24 13:53:32 CET 2006 root@pollux.senax.net:/usr/obj/usr/src/sys/POLLUX i386 >Description: Nice port, but trying to save a game is a fatal trap: the program expects a filename follwed by CR, but hitting <ENTER> sends LF (for xterm as well as for console). From here `killall sudoku` seems to be the only way out. Please consider the patch below to fix this problem. >How-To-Repeat: Invoke sudoku and then hit 's' for 'save'. >Fix: --- sudoku-1.0.1.patch begins here --- diff -Nur sudoku.BAK/Makefile sudoku/Makefile --- sudoku.BAK/Makefile Fri Mar 17 01:04:56 2006 +++ sudoku/Makefile Sun Mar 26 18:25:24 2006 @@ -8,6 +8,7 @@ PORTNAME= sudoku PORTVERSION= 1.0.1 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://www.laurasia.com.au/downloads/ EXTRACT_SUFX= .tgz diff -Nur sudoku.BAK/files/patch-sudoku.c sudoku/files/patch-sudoku.c --- sudoku.BAK/files/patch-sudoku.c Thu Jan 1 01:00:00 1970 +++ sudoku/files/patch-sudoku.c Sun Mar 26 18:16:35 2006 @@ -0,0 +1,11 @@ +--- sudoku.c.orig Mon Jul 25 03:13:31 2005 ++++ sudoku.c Sun Mar 26 18:12:22 2006 +@@ -1837,7 +1837,7 @@ + + /* Read character input (raw processing mode) */ + i = strlen( userfile ); +- while( '\r' != ( ch = getkey( ) ) ) ++ while( '\n' != ( ch = getkey( ) ) ) + { + if( 0x08 == ch || VKEY_LEFT == ch ) /* destructive backspace */ + { --- sudoku-1.0.1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603261825.k2QIPXQ7006269>