Newline for print() is \n on Windows, and not \r\n as expected · Issue #57328 · python/cpython · GitHub
Skip to content

Newline for print() is \n on Windows, and not \r\n as expected #57328

Description

@MZ
mannequin
BPO 13119
Nosy @loewis, @birkenfeld, @atsuoishimoto, @amauryfa, @pitrou, @vstinner, @florentx, @serhiy-storchaka
Files
  • newline.py: Small trivial script
  • newline_3.1.txt: Py 3.1.4 output on Windows
  • newline_3.2.txt: Py 3.2.2 output on Windows
  • windows_stdout_newline.patch
  • issue13119_test.patch
  • issue13119_httpserver.patch
  • issue13119_unbuffered.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2012-08-16.06:58:03.911>
    created_at = <Date 2011-10-06.20:59:47.493>
    labels = ['type-bug', 'OS-windows', 'release-blocker']
    title = 'Newline for print() is \\n on Windows, and not \\r\\n as expected'
    updated_at = <Date 2012-08-16.06:58:03.909>
    user = 'https://bugs.python.org/MZ'

    bugs.python.org fields:

    activity = <Date 2012-08-16.06:58:03.909>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-08-16.06:58:03.911>
    closer = 'serhiy.storchaka'
    components = ['Windows']
    creation = <Date 2011-10-06.20:59:47.493>
    creator = 'M..Z.'
    dependencies = []
    files = ['23330', '23331', '23332', '26644', '26660', '26694', '26695']
    hgrepos = []
    issue_num = 13119
    keywords = ['patch']
    message_count = 36.0
    messages = ['145039', '145050', '145054', '145064', '145066', '145068', '145310', '167067', '167092', '167193', '167250', '167257', '167269', '167288', '167379', '167382', '167449', '167452', '167454', '167457', '167460', '167465', '167468', '167479', '167481', '167482', '167485', '167486', '167488', '167499', '167500', '167502', '168348', '168349', '168350', '168351']
    nosy_count = 10.0
    nosy_names = ['loewis', 'georg.brandl', 'ishimoto', 'amaury.forgeotdarc', 'pitrou', 'vstinner', 'flox', 'M..Z.', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue13119'
    versions = ['Python 3.2', 'Python 3.3']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions