🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #217

Perl 3.0 patchlevel 1 printf() bug?

#217
From: Joseph H. Buehler
Date: Thu, 09 Nov 1989 07:33
23 lines
969 bytes
I'm running perl 3.0 with patch #1, and the three password structure
fields #undef'd in config.h

The following perl script fails.

	$char = 0x44;
	$threshold = 65535;
	$key = "a";
	$start{$key} = 512;
	printf("    '%c', $threshold, %d,\n", $char, 0+$start{$key});

Perl 2 patch 18 gives the output (angle brackets inserted by me to
demark the string limits):

<    'D', 65535, 512,>

Perl 3 patch 1 produces:

<D', 65535, 512,>

Anyone know what's going on?
--
Joe Buehler
Technical Details
Message-ID: <JHPB.89Nov9073339@lancia.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!apple!uokmax!occrsh!att!cbnewsm!lancia!jhpb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!apple!uokmax!occrsh!att!cbnewsm!lancia!jhpb
From: jhpb@lancia.ATT.COM (Joseph H. Buehler)
Newsgroups: comp.sources.bugs,comp.sources.d
Subject: Perl 3.0 patchlevel 1 printf() bug?
Message-ID: <JHPB.89Nov9073339@lancia.ATT.COM>
Date: 9 Nov 89 07:33:39 GMT
Sender: jhpb@cbnewsm.ATT.COM
Distribution: usa
Organization: AT&T Bell Laboratories, Liberty Corner, NJ
Lines: 23