Python Unicode Was: Not much database creation error

2011-09-16 Thread Sebastian Spaeth
P.S. perhaps we should be using: locale.getpreferredencoding() to determine the default path and tag encoding? Opinions, Experiences,...? Sebastian -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes

Python Unicode Was: Not much database creation error

2011-09-16 Thread Sebastian Spaeth
On Thu, 15 Sep 2011 13:41:11 -0400, Martin Owens wrote: > I've attached a diff for some proposed changes to help make dealing with > unicode and strings in the bindings more regular. I noticed some of the > methods were protected and others were not. I've now pushed a slightly modified version of

Re: Python Unicode Was: Not much database creation error

2011-09-16 Thread Sebastian Spaeth
On Thu, 15 Sep 2011 13:41:11 -0400, Martin Owens wrote: I've attached a diff for some proposed changes to help make dealing with unicode and strings in the bindings more regular. I noticed some of the methods were protected and others were not. I've now pushed a slightly modified version of

Python Unicode Was: Not much database creation error

2011-09-15 Thread Austin Clements
This seems like a symptom of a much bigger problem. Shouldn't the bindings be checking or coercing the type of *every* argument that gets passed from the caller through to a ctypes-wrapped libnotmuch function? Otherwise, a simple type error in a caller, like passing a number instead of a string

Python Unicode Was: Not much database creation error

2011-09-15 Thread Martin Owens
Hello Sebastian, I've attached a diff for some proposed changes to help make dealing with unicode and strings in the bindings more regular. I noticed some of the methods were protected and others were not. Let me know. Best Regards, Martin Owens On Thu, 2011-09-08 at 15:45 +0200, Sebastian

Python Unicode Was: Not much database creation error

2011-09-15 Thread Martin Owens
Hello Sebastian, I've attached a diff for some proposed changes to help make dealing with unicode and strings in the bindings more regular. I noticed some of the methods were protected and others were not. Let me know. Best Regards, Martin Owens On Thu, 2011-09-08 at 15:45 +0200, Sebastian

Re: Python Unicode Was: Not much database creation error

2011-09-15 Thread Austin Clements
This seems like a symptom of a much bigger problem. Shouldn't the bindings be checking or coercing the type of *every* argument that gets passed from the caller through to a ctypes-wrapped libnotmuch function? Otherwise, a simple type error in a caller, like passing a number instead of a string