[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2015-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And needed tests. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2015-01-18 Thread STINNER Victor
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 _

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2015-01-18 Thread STINNER Victor
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 = u"D:\\你好新建文件夹\\a" >>> import shelve >>>

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2015-01-18 Thread STINNER Victor
STINNER Victor added the comment: > Could you please update the patch Victor? You can update this old patch if you want. -- ___ Python tracker ___ ___

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2015-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please update the patch Victor? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2014-12-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> needs patch versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2014-09-27 Thread Serhiy Storchaka
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 __

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor
STINNER Victor 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 a

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor
STINNER Victor 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 __

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread R. David Murray
R. David Murray 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 wit

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor
STINNER Victor added the comment: Same patch for Python 3.2. -- Added file: http://bugs.python.org/file18231/dbm_open_unicode-32.patch ___ Python tracker ___

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread wjm251
wjm251 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 bsd

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file18230/dbm_open_unicode-27.patch ___ Python tracker ___ _

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor
STINNER Victor 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

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread wjm251
wjm251 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 ___ _

[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread Éric Araujo
Changes by Éric Araujo : -- 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