[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
Serhiy Storchaka added the comment: Could you please update the patch Victor? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
STINNER Victor added the comment: Could you please update the patch Victor? You can update this old patch if you want. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
STINNER Victor added the comment: Python 3 is not affected: Python 3.5.0a0 (default:61a045ac0006, Jan 15 2015, 00:05:43) [GCC 4.9.2 20141101 (Red Hat 4.9.2-1)] on linux Type help, copyright, credits or license for more information. temppath = uD:\\你好新建文件夹\\a import shelve cache = shelve.open(temppath, 'c') (no error) -- versions: -Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
STINNER Victor added the comment: Python 3 is not affected: Oh sorry, dbm_open_unicode-32.patch is still needed. Currently, filenames are encoded to UTF-8 which works when the filesystem encoding is UTF-8, but it doesn't work on Windows. -- versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
Serhiy Storchaka added the comment: And needed tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: test needed - needs patch versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
Serhiy Storchaka added the comment: dbm_open_unicode-32.patch no longer applied cleanly due to Argument Clinic. I'm not sure about applying patches to 2.7. I support this, but it looks as new feature, and you should ask on Python-Dev mailing list. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
Changes by Éric Araujo mer...@netwok.org: -- nosy: +haypo title: shelve.open/bsddb.hashopen raise Exception'No such file or directory'for Chinese path - shelve.open/bsddb.hashopen exception with unicode paths type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
wjm251 wjm...@gmail.com added the comment: I think it is supposed that unicode paths and GBK encoded str objects will be ok in Windows. But only UTF-8 encoded str can -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
STINNER Victor victor.stin...@haypocalc.com added the comment: shelve uses anydbm which uses gdbm, dbm or bsddbm. Attached patch fixes gdbm and dbm (replace s format by et with Py_FileSystemDefaultEncoding). bsddbm is harder to fix: bsdhashopen(), bsdbtopen() and bsdrnopen() have to be fixed, and they accept None for the filename (z format). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
Changes by STINNER Victor victor.stin...@haypocalc.com: -- keywords: +patch Added file: http://bugs.python.org/file18230/dbm_open_unicode-27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
wjm251 wjm...@gmail.com added the comment: sorry I donot know exactly your meaning, what does these mean: s format by et , z format and I'm not familiar with the C/C++ do you mean that I can use the attached patch to complie a new Python dll? but it seams that in My PC the shelve module always uses bsddbm automaticly, can you explains more clearly? thank you very much sincerely -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
STINNER Victor victor.stin...@haypocalc.com added the comment: Same patch for Python 3.2. -- Added file: http://bugs.python.org/file18231/dbm_open_unicode-32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
R. David Murray rdmur...@bitdance.com added the comment: Victor's comments were addressed to the python development community and concern python internals. Given that only bsddb exists on windows by default, his patches unfortunately don't do you any good. I'm adding jcea as nosy in case he wants to/can deal with the problem in bsddb. -- nosy: +jcea, r.david.murray stage: - unit test needed versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
STINNER Victor victor.stin...@haypocalc.com added the comment: It looks like bsddb (dbm.bsd) module doesn't exist anymore in Python3: see issue #9397. It's now maintained in the third party module pybsddb. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9393] shelve.open/bsddb.hashopen exception with unicode paths
STINNER Victor victor.stin...@haypocalc.com added the comment: New patch for bsddb module: create parse_filename() function, based on Python3 PyUnicode_FSConverter() but it accepts None. I didn't tested the patch because I'm unable to compile the module. It looks like it should use db_185.h instead of db.h, and link to another library, but configure or setup.py doesn't know it. -- Added file: http://bugs.python.org/file18232/bsddb_unicode_filename-27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com