Title: Newline for print() is \n on Windows, and not \r\n as expected · Issue #57328 · python/cpython · GitHub
Open Graph Title: Newline for print() is \n on Windows, and not \r\n as expected · Issue #57328 · python/cpython
X Title: Newline for print() is \n on Windows, and not \r\n as expected · Issue #57328 · python/cpython
Description: BPO 13119 Nosy @loewis, @birkenfeld, @atsuoishimoto, @amauryfa, @pitrou, @vstinner, @florentx, @serhiy-storchaka Files newline.py: Small trivial scriptnewline_3.1.txt: Py 3.1.4 output on Windowsnewline_3.2.txt: Py 3.2.2 output on Windows...
Open Graph Description: BPO 13119 Nosy @loewis, @birkenfeld, @atsuoishimoto, @amauryfa, @pitrou, @vstinner, @florentx, @serhiy-storchaka Files newline.py: Small trivial scriptnewline_3.1.txt: Py 3.1.4 output on Windowsnew...
X Description: BPO 13119 Nosy @loewis, @birkenfeld, @atsuoishimoto, @amauryfa, @pitrou, @vstinner, @florentx, @serhiy-storchaka Files newline.py: Small trivial scriptnewline_3.1.txt: Py 3.1.4 output on Windowsnew...
Opengraph URL: https://github.com/python/cpython/issues/57328
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Newline for print() is \\n on Windows, and not \\r\\n as expected","articleBody":"BPO | [13119](https://bugs.python.org/issue13119)\n--- | :---\nNosy | @loewis, @birkenfeld, @atsuoishimoto, @amauryfa, @pitrou, @vstinner, @florentx, @serhiy-storchaka\nFiles | \u003cli\u003e[newline.py](https://bugs.python.org/file23330/newline.py \"Uploaded as text/plain at 2011-10-06.20:59:47 by M..Z.\"): Small trivial script\u003c/li\u003e\u003cli\u003e[newline_3.1.txt](https://bugs.python.org/file23331/newline_3.1.txt \"Uploaded as text/plain at 2011-10-06.21:00:22 by M..Z.\"): Py 3.1.4 output on Windows\u003c/li\u003e\u003cli\u003e[newline_3.2.txt](https://bugs.python.org/file23332/newline_3.2.txt \"Uploaded as text/plain at 2011-10-06.21:00:38 by M..Z.\"): Py 3.2.2 output on Windows\u003c/li\u003e\u003cli\u003e[windows_stdout_newline.patch](https://bugs.python.org/file26644/windows_stdout_newline.patch \"Uploaded as text/plain at 2012-08-01.07:20:00 by @vstinner\")\u003c/li\u003e\u003cli\u003e[issue13119_test.patch](https://bugs.python.org/file26660/issue13119_test.patch \"Uploaded as text/plain at 2012-08-02.05:20:08 by @atsuoishimoto\")\u003c/li\u003e\u003cli\u003e[issue13119_httpserver.patch](https://bugs.python.org/file26694/issue13119_httpserver.patch \"Uploaded as text/plain at 2012-08-04.23:41:41 by @atsuoishimoto\")\u003c/li\u003e\u003cli\u003e[issue13119_unbuffered.patch](https://bugs.python.org/file26695/issue13119_unbuffered.patch \"Uploaded as text/plain at 2012-08-05.01:02:00 by @atsuoishimoto\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2012-08-16.06:58:03.911\u003e\ncreated_at = \u003cDate 2011-10-06.20:59:47.493\u003e\nlabels = ['type-bug', 'OS-windows', 'release-blocker']\ntitle = 'Newline for print() is \\\\n on Windows, and not \\\\r\\\\n as expected'\nupdated_at = \u003cDate 2012-08-16.06:58:03.909\u003e\nuser = 'https://bugs.python.org/MZ'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2012-08-16.06:58:03.909\u003e\nactor = 'serhiy.storchaka'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2012-08-16.06:58:03.911\u003e\ncloser = 'serhiy.storchaka'\ncomponents = ['Windows']\ncreation = \u003cDate 2011-10-06.20:59:47.493\u003e\ncreator = 'M..Z.'\ndependencies = []\nfiles = ['23330', '23331', '23332', '26644', '26660', '26694', '26695']\nhgrepos = []\nissue_num = 13119\nkeywords = ['patch']\nmessage_count = 36.0\nmessages = ['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']\nnosy_count = 10.0\nnosy_names = ['loewis', 'georg.brandl', 'ishimoto', 'amaury.forgeotdarc', 'pitrou', 'vstinner', 'flox', 'M..Z.', 'python-dev', 'serhiy.storchaka']\npr_nums = []\npriority = 'release blocker'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue13119'\nversions = ['Python 3.2', 'Python 3.3']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/MZ","@type":"Person","name":"MZ"},"datePublished":"2011-10-06T20:59:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":36},"url":"https://github.com/57328/cpython/issues/57328"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a861ca5a-2187-8d72-e9dc-f1727aca6b67 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E286:111866:E94490:132F2E6:6A519999 |
| html-safe-nonce | 0587546d86baf9737f7f0a10c6869c356c9416df902489843dbb48f022694e0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjg2OjExMTg2NjpFOTQ0OTA6MTMyRjJFNjo2QTUxOTk5OSIsInZpc2l0b3JfaWQiOiIzMDc4MTMwMDE0MDIzMTYyMjY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 966abbcc68e55f5422d8d03f556993c322d6f0e8bdf3f79a3508b2221987dc59 |
| hovercard-subject-tag | issue:1198873658 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/57328/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80f46a5de2246e8f424cc048fdb6d8af6dae5bbeb1ce084e989f56743f243de2/python/cpython/issues/57328 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80f46a5de2246e8f424cc048fdb6d8af6dae5bbeb1ce084e989f56743f243de2/python/cpython/issues/57328 |
| og:image:alt | BPO 13119 Nosy @loewis, @birkenfeld, @atsuoishimoto, @amauryfa, @pitrou, @vstinner, @florentx, @serhiy-storchaka Files newline.py: Small trivial scriptnewline_3.1.txt: Py 3.1.4 output on Windowsnew... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MZ |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width