[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Please follow the naming convention used in os.path. The functions would have to be called os.path.fsencode() and os.path.fsdecode(). Ok Other

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In real life applications, you do run into these problems quite often Yes, I'm agree 100% with you :-) Python3 prefers unicode, eg. print expects an unicode string, not a byte string. I mean it's more pratical to use unicode

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Please follow the naming convention used in os.path. The functions would have to be called os.path.fsencode() and os.path.fsdecode(). Ok Other than that, I'm +0 on the patch: the sys.filesystemencoding logic doesn't really work

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: Python3 uses unicode filenames in Windows and bytes filenames (but support also unicode filenames) on other OS. We have to support both types. On

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal stage: - patch review type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8514

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8514 ___

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-23 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Python3 uses unicode filenames in Windows and bytes filenames (but support also unicode filenames) on other OS. We have to support both types. On POSIX system, bytes filenames can be stored in unicode filenames using

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +lemburg, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8514 ___ ___

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #8513 would benefit from these functions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8514 ___