From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id AFF34431FD0 for ; Fri, 16 Sep 2011 04:32:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.09 X-Spam-Level: X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KNaUq-2QQ+-E for ; Fri, 16 Sep 2011 04:32:59 -0700 (PDT) Received: from homiemail-a12.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by olra.theworths.org (Postfix) with ESMTP id 47768431FB6 for ; Fri, 16 Sep 2011 04:32:59 -0700 (PDT) Received: from homiemail-a12.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a12.g.dreamhost.com (Postfix) with ESMTP id C19B8714070; Fri, 16 Sep 2011 04:32:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:cc:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=KoFVbneL4DaRkKMz2Kh7psgWvFS 99+v0HSRzWh4hUG4QP59hU46MLC8CAil5e2O6LmGqy2HCPNA0QEib7bXaVfejiSZ QMkOg+g8LGFCae/IS/uQJ+8LevIG2snmWCP2kNv5icmv0Fsnly7mKj2mPm8NB7Aw H95HeVJOnZwVmS8o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=t1vJeCii2C5rwVNLGk0raiZ102I=; b=E HnOJTyiDnwvx40psYrabGreBU/qlAtWgjIOhmGTeJ0niflZL+eh3F/8HENs0YP8h TrtqPbCJLN7MwHe1LltpEmU73fokdnqiKIoBk+qMZnj1YL5pxZhUH4wdV0ncXthF IKMR2U2t8HvRSKPB1vgFpZPpDEvQ9ITZ66MjoO/Wko= Received: from spaetzbook.sspaeth.de (unknown [84.55.211.141]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fax@sspaeth.de) by homiemail-a12.g.dreamhost.com (Postfix) with ESMTPSA id 031F171406F; Fri, 16 Sep 2011 04:32:56 -0700 (PDT) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Fri, 16 Sep 2011 13:32:54 +0200 From: Sebastian Spaeth To: Martin Owens Subject: Re: Python Unicode Was: Not much database creation error In-Reply-To: <1316108471.2201.24.camel@delen> References: <1315110898.32058.13.camel@delen> <87vct7t7m4.fsf@SSpaeth.de> <1315373219.32058.157.camel@delen> <8739g7gnb4.fsf@SSpaeth.de> <1316108471.2201.24.camel@delen> User-Agent: Notmuch/0.7-19-gee4579a (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Fri, 16 Sep 2011 13:32:53 +0200 Message-ID: <87zki4afiy.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: Notmuch developer list , Paul Tagliamonte X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2011 11:32:59 -0000 --=-=-= 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 the patch (BTW, you have find_message_by_filename() when I don't, care to send that patch too? :-)) As discussed on IRC with Bremner and ojwb: Rather than hardcoding UTF-8 we should probably detect the systems locale variable and use that as encoding for file paths (falling back to utf8). But your patch is better than what we have before, so it's going in for now. Sebastian --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk5zM+YACgkQVYX1jMgnoGKUbgCeJ77g7MKdJXIJXI8BB6COQXZc R2kAn2+ax2lf7pP6Ctw1bltEid6A4Lw9 =6mtb -----END PGP SIGNATURE----- --=-=-=--