@@ -306,16 +306,42 @@ \section{PEP 263: Source Code Encodings \label{section-encodings}}
306306\begin {seealso }
307307
308308\seepep {263}{Defining Python Source Code Encodings}{Written by
309- Marc-Andr\' e Lemburg and Martin von L\" owis; implemented by Martin von
310- L\" owis.}
309+ Marc-Andr\' e Lemburg and Martin von L\" owis; implemented by SUZUKI
310+ Hisao and Martin von L\" owis.}
311311
312312\end {seealso }
313313
314314
315315% ======================================================================
316- \section {PEP 277: XXX }
316+ \section {PEP 277: Unicode file name support for Windows NT }
317317
318- XXX write this section
318+ On Windows NT, 2000, and XP, the system stores file names as Unicode
319+ strings. Traditionally, Python has represented file names are byte
320+ strings, which is inadequate since it renders some file names
321+ inaccessible.
322+
323+ Python allows now to use arbitrary Unicode strings (within limitations
324+ of the file system) for all functions that expect file names, in
325+ particular \function {open}. If a Unicode string is passed to
326+ \function {os.listdir}, Python returns now a list of Unicode strings.
327+ A new function \function {getcwdu} returns the current directory as a
328+ Unicode string.
329+
330+ Byte strings continue to work as file names, the system will
331+ transparently convert them to Unicode using the \code {mbcs} encoding.
332+
333+ Other systems allow Unicode strings as file names as well, but convert
334+ them to byte strings before passing them to the system, which may
335+ cause UnicodeErrors. Applications can test whether arbitrary Unicode
336+ strings are supported as file names with \code {os.path.unicode_file_names}.
337+
338+ \begin {seealso }
339+
340+ \seepep {277}{Unicode file name support for Windows NT}{Written by Neil
341+ Hodgson; implemented by Neil Hodgson, Martin von L\" owis, and Mark
342+ Hammond.}
343+
344+ \end {seealso }
319345
320346
321347% ======================================================================
0 commit comments