Opened 2 years ago

Last modified 2 years ago

#8153 defect new

twisted.logger does not respect the system newline convention

Reported by: hawkowl Owned by:
Priority: normal Milestone: Python-3.x
Component: core Keywords:
Cc: Branch: branches/systemnewlines-8153
branch-diff, diff-cov, branch-cov, buildbot
Author: hawkowl

Description

There's \ns hardcoded in places -- we should use \r\n on platforms where it makes sense, by asking os.linesep.

Change History (2)

comment:1 Changed 2 years ago by hawkowl

Milestone: Python-3.x

This is most apparently on the Windows on Python 3 port -- writing in "w" will convert \ns to \r\ns automatically, but this is not done on Python 2 on Windows.

comment:2 Changed 2 years ago by hawkowl

Author: hawkowl
Branch: branches/systemnewlines-8153

(In [46543]) Branching to systemnewlines-8153.

Note: See TracTickets for help on using tickets.