Subject: pkg/23359: gforth emits MS-DOS style characters in "CR" word
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jacereda@lomoconpi.act.uji.es>
List: netbsd-bugs
Date: 11/03/2003 18:52:10
>Number:         23359
>Category:       pkg
>Synopsis:       gforth emits MS-DOS style characters in "CR" word
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 03 17:53:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jorge Acereda
>Release:        NetBSD 1.6.1
>Organization:
	
>Environment:
	
	
System: NetBSD lomoconpi.act.uji.es 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Tue Apr 8 12:05:52 UTC 2003 autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/i386/OBJ/autobuild/netbsd-1-6/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	

	gforth checks in the sources the "unix" preprocessor symbol to
	determine which type of carriage return codes should emit. As the
	symbol is undefined, it compiles the wrong code, and it can lead
	to errors in scripts using gforth.

>How-To-Repeat:
	
	cd /usr/pkgsrc/lang/gforth && make install
	gforth -e "cr bye" | wc -c
	       2

	The number of characters emitted by the "cr" word should be 1.

>Fix:
	

	The following patch fixes the problem using the ugly way. 

cvs server: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gforth/Makefile,v
retrieving revision 1.14
diff -r1.14 Makefile
19a20,21
> CFLAGS+= -Dunix
> 

>Release-Note:
>Audit-Trail:
>Unformatted: