Skip Menu |
 

This queue is for tickets about the Sys-Syslog CPAN distribution.

Report information
The Basics
Id: 24431
Status: resolved
Priority: 0/
Queue: Sys-Syslog

People
Owner: Nobody in particular
Requestors: PETERHI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.18
Fixed in: 0.21



Subject: Lines ending with \n on OS X 10.4
Download (untitled) / with headers
text/plain 786b
I am running the following test script on my PPC OSX machine (This is perl, v5.8.6 built for darwin-thread-multi-2level) and I am seeing some strangeness: #!/usr/bin/perl -w use strict; use warnings; use Sys::Syslog qw(:standard :macros); my $ident = "testLogger"; my $logopt = "pid"; my $facility = "LOG_LOCAL0"; # Writes to the same place as ipfw openlog $ident, $logopt, $facility; syslog LOG_INFO, "%s", "This is my test message"; syslog LOG_INFO, "This is another test message"; closelog; The resulting lines in the log read: Jan 18 13:26:35 Desktop testLogger[18393]: This is my test message\n Jan 18 13:26:35 Desktop testLogger[18393]: This is another test message\n Note the literal \n on the end of each line. Is there some way to get rid of this?
Subject: Re: [rt.cpan.org #24431] Lines ending with \n on OS X 10.4
Date: Thu, 18 Jan 2007 15:45:56 +0100
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Download (untitled) / with headers
text/plain 667b
Show quoted text
> I am running the following test script on my PPC OSX machine (This is > perl, v5.8.6 built for darwin-thread-multi-2level) and I am seeing some > strangeness: [...] > > Jan 18 13:26:35 Desktop testLogger[18393]: This is my test message\n > Jan 18 13:26:35 Desktop testLogger[18393]: This is another test message\n > > Note the literal \n on the end of each line. Is there some way to get > rid of this?
I think I've also seen some of these on my OSX. I'll add a workaround to avoid this end-of-line, but maybe a bug could be openened at Apple: syslog daemons on most other Unix just ignore these. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
Subject: Re: [rt.cpan.org #24431] Lines ending with \n on OS X 10.4
Date: Sun, 21 Jan 2007 19:16:52 +0100
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Download (untitled) / with headers
text/plain 309b
Show quoted text
> I think I've also seen some of these on my OSX. > I'll add a workaround to avoid this end-of-line, but maybe a bug could > be openened at Apple: syslog daemons on most other Unix just ignore > these.
Opened on Apple Radar as bug #4944407. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
Subject: Re: [rt.cpan.org #24431] Lines ending with \n on OS X 10.4
Date: Wed, 10 Oct 2007 00:36:19 +0200
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Download (untitled) / with headers
text/plain 486b
[ resending as it seems this have been eaten by internet trolls ] Show quoted text
>> I am running the following test script on my PPC OSX machine [...] >> Note the literal \n on the end of each line. Is there some way to get >> rid of this?
> > I'll add a workaround to avoid this end-of-line
Show quoted text
> Opened on Apple Radar as bug #4944407.
Apple didn't answer, so I added a workaround in version 0.21. Thanks for reporting the problem. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
Subject: Re: [rt.cpan.org #24431] Lines ending with \n on OS X 10.4
Date: Sat, 03 Nov 2007 19:53:03 +0100
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Download (untitled) / with headers
text/plain 423b
Show quoted text
>> Opened on Apple Radar as bug #4944407.
> > Apple didn't answer, so I added a workaround in version 0.21. > Thanks for reporting the problem.
Received this answer from Apple: "Engineering believes this issue has been addressed in Mac OS X Leopard." Very helping... As there's already a workaround in Sys::Syslog, this ticket can be closed. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.