A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/1999-July/000525.html below:

[Python-Dev] End of the line

[Python-Dev] End of the line [Python-Dev] End of the lineJack Jansen jack@oratrix.nl
Wed, 14 Jul 1999 10:21:16 +0200
> The Icon implementation is very simple:  they *still* open the file in stdio
> text mode.  "What's natural for the platform" on writing then comes for
> free.  On reading, libc usually takes care of what's needed, and what
> remains is to check for stray '\r' characters that stdio glossed over.

This'll work for Unix and PC conventions, but not for the Mac. Mac end of line 
is \r, so reading a line from a mac file on unix will give you the whole file.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm 





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4