NetBSD Problem Report #23359
Received: (qmail 4853 invoked by uid 605); 3 Nov 2003 17:52:14 -0000
Message-Id: <200311031752.hA3HqAF10631@lomoconpi.act.uji.es>
Date: Mon, 3 Nov 2003 18:52:10 +0100 (CET)
From: jacereda@lomoconpi.act.uji.es
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jacereda@sourceforge.net
To: gnats-bugs@gnats.netbsd.org
Subject: gforth emits MS-DOS style characters in "CR" word
X-Send-Pr-Version: 3.95
>Number: 23359
>Category: pkg
>Synopsis: gforth emits MS-DOS style characters in "CR" word
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 03 17:53:00 +0000 2003
>Closed-Date: Mon Nov 03 18:39:30 +0000 2003
>Last-Modified: Mon Nov 03 18:39:30 +0000 2003
>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:
From: "Julio M. Merino Vidal" <jmmv@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/23359 CVS commit: pkgsrc/lang/gforth
Date: Mon, 3 Nov 2003 18:35:24 +0000 (UTC)
Module Name: pkgsrc
Committed By: jmmv
Date: Mon Nov 3 18:35:24 UTC 2003
Modified Files:
pkgsrc/lang/gforth: Makefile
Log Message:
Define 'unix' so that the program uses the right carriage return code.
Bump PKGREVISION to 1. From Jorge Acereda in PR pkg/23359.
To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 pkgsrc/lang/gforth/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: jmmv
State-Changed-When: Mon Nov 3 18:38:28 UTC 2003
State-Changed-Why:
Fixed, thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.