Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.py problems on Windows #45382

Closed
theller opened this issue Aug 28, 2007 · 2 comments
Closed

io.py problems on Windows #45382

theller opened this issue Aug 28, 2007 · 2 comments

Comments

@theller
Copy link

theller commented Aug 28, 2007

BPO 1041
Nosy @gvanrossum, @theller

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 2007-08-29.20:48:05.583>
created_at = <Date 2007-08-28.06:09:59.036>
labels = ['OS-windows']
title = 'io.py problems on Windows'
updated_at = <Date 2007-08-29.20:48:05.581>
user = 'https://github.com/theller'

bugs.python.org fields:

activity = <Date 2007-08-29.20:48:05.581>
actor = 'gvanrossum'
assignee = 'none'
closed = True
closed_date = <Date 2007-08-29.20:48:05.583>
closer = 'gvanrossum'
components = ['Windows']
creation = <Date 2007-08-28.06:09:59.036>
creator = 'theller'
dependencies = []
files = []
hgrepos = []
issue_num = 1041
keywords = []
message_count = 2.0
messages = ['55353', '55440']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'theller']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1041'
versions = ['Python 3.0']

@theller
Copy link
Author

theller commented Aug 28, 2007

Running the PCBuild\rt.bat script fails when it compares the expected output
with the actual output. Some inspection shows that the comparison fails
because
there are '\n' linefeeds in the expected and '\n\r' linefeeds in the
actual output:

c:\svn\py3k\PCbuild>python_d -E -tt ../lib/test/regrtest.py
test_grammar
test test_grammar produced unexpected output:


*** mismatch between line 1 of expected output and line 1 of actual
output:

  • test_grammar
    + test_grammar
    ? +
    (['test_grammar\n'], ['test_grammar\r\n'])
    ... and so on ...

(The last line is printed by some code I added to Lib\regrtest.py.)

It seems that this behaviour was introduced by r57186:

New I/O code from Tony Lownds implement newline feature correctly,
and implements .newlines attribute in a 2.x-compatible fashion.

The patch at http://bugs.python.org/issue1029 apparently fixes this problem.

@gvanrossum
Copy link
Member

I'm guessing this is fixed now that that patch is submitted.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants