From c5207c84252538259b1521aaca4171051e913cc7 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 11 May 2007 11:04:26 +0000 Subject: Patch #1714700: clarify os.linesep vs. tfiles opened in text mode. (backport) --- Doc/lib/libos.tex | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index 9783c14..2454e57 100644 --- a/Doc/lib/libos.tex +++ b/Doc/lib/libos.tex @@ -2009,9 +2009,12 @@ Also available via \module{os.path}. \begin{datadesc}{linesep} The string used to separate (or, rather, terminate) lines on the -current platform. This may be a single character, such as \code{'\e -n'} for \POSIX{} or \code{'\e r'} for Mac OS, or multiple characters, -for example, \code{'\e r\e n'} for Windows. +current platform. This may be a single character, such as +\code{'\e n'} for \POSIX{} or \code{'\e r'} for Mac OS, or multiple +characters, for example, \code{'\e r\e n'} for Windows. +Do not use \var{os.linesep} as a line terminator when writing files +opened in text mode (the default); use a single \code{'\e n'} instead, +on all platforms. \end{datadesc} \begin{datadesc}{devnull} -- cgit v0.12