[New-bugs-announce] [issue13374] Deprecate usage of the Windows ANSI API in the nt module

STINNER Victor report at bugs.python.org
Wed Nov 9 01:10:06 CET 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

Attached patch deprecates the Windows ANSI API (bytes API) in the nt module. Use Unicode filenames instead of bytes filenames to not depend on the ANSI code page anymore and to support any Unicode filename.

The patch changes also os.link(), os.rename() and os.symlink() to not accept two filenames of different types: require two Unicode filenames or two bytes filenames. It is an expected change, it did it to simplify the source code. I change it if necessary.

----------
components: Library (Lib)
files: deprecate_win_bytes_api.patch
keywords: patch
messages: 147323
nosy: haypo
priority: normal
severity: normal
status: open
title: Deprecate usage of the Windows ANSI API in the nt module
versions: Python 3.3
Added file: http://bugs.python.org/file23640/deprecate_win_bytes_api.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13374>
_______________________________________


More information about the New-bugs-announce mailing list