Upstart Logfiles: have Dos/WIndows line endings

Bug #1266068 reported by Bernd on 2014-01-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart (Ubuntu)
Undecided
Unassigned

Bug Description

First of all an Happy New Year:)

All upstart logfiles Dos/Windows line endings eg \r\n (^M) and not the normal unix end of line

I'v seen this on 3 different boxes in my home env.

Box-1: uses Ubuntu 12.04 LTS 32 bit
uname -a:
Linux pc-1 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:40:43 UTC 2013 i686 i686 i386 GNU/Linux

lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.3 LTS
Release: 12.04
Codename: precise

init --version:
init (upstart 1.5)
Copyright (C) 2012 Scott James Remnant, Canonical Ltd
------------------------------------------
Box-2: elementary Os luna 0.2 64 bit
uname -a:
Linux midox-CQ60-Notebook-PC 3.12.6-031206-generic #201312201218 SMP Fri Dec 20 17:20:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a :
No LSB modules are available.
Distributor ID: elementary OS
Description: elementary OS Luna
Release: 0.2
Codename: luna

init --version:
init (upstart 1.5)
Copyright (C) 2012 Scott James Remnant, Canonical Ltd
-------------------------------------
Box-3:Ubuntu 12.10 32 bit
uname -a:
Linux mausi-Notebook-PC 3.5.0-45-generic #68-Ubuntu SMP Mon Dec 2 22:02:00 UTC 2013 i686 i686 i686 GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID:Ubuntu
Description:Ubuntu 12.10
Release:12.10
Codename:quantal

init --version
init (upstart 1.5)
Copyright (C) 2012 Scott James Remnant, Canonical Ltd.

steps to reproduce:
Open the logfiles with midnight-commander(f3 and then f4 for hex mode) or an ordanary hexviewer
I see the lines ends with a 0x0d 0x0a
when i open the log files in /var/log/upstart with mcedit i see the ^M at each end of line in the logs

i think the lines should end with a normal 0x0a (\n) as we are on a linux system
but maybe i'm wrong and this is the intended behavior of init(upstart)

I searched already for releated bugs here but maybe i missed something

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions