Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2146C431FD0 for ; Wed, 13 Jul 2011 02:04:01 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 TRGgTBLoQ+EC for ; Wed, 13 Jul 2011 02:03:59 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 38B0B431FB6 for ; Wed, 13 Jul 2011 02:03:59 -0700 (PDT) Received: by wyh22 with SMTP id 22so4262190wyh.26 for ; Wed, 13 Jul 2011 02:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Ho3udYCg+3L+Kadmom82Si1AUZtpVw8wEYvzp9sPPYU=; b=ldiD0Up9xW293mtiFFfoVac/tgcG4ALTCy7V2lV280A9EY7ZNwM/vwaC/DpQQf/DdB bdkpYLMFzIk8BDkyD2oU3wTi3VZZG4MIc4NE1t0f+8lMDKAJc2GfwjtNUmK7XBaplmRV eNiS5c77RhvaTLiRph6FueCP6TmKnqPHIyx/w= Received: by 10.216.132.169 with SMTP id o41mr735583wei.83.1310547837785; Wed, 13 Jul 2011 02:03:57 -0700 (PDT) Received: from brick.lan (cpc1-sgyl2-0-0-cust47.sgyl.cable.virginmedia.com [80.192.18.48]) by mx.google.com with ESMTPS id v81sm1086051wer.47.2011.07.13.02.03.55 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jul 2011 02:03:56 -0700 (PDT) Date: Wed, 13 Jul 2011 10:03:52 +0100 From: Patrick Totzke To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Subject: Re: Encodings Message-ID: <20110713090352.GA22558@brick.lan> References: <87zkkkx6am.fsf@SSpaeth.de> <20110712212958.GA17348@brick.lan> <20110713070447.GA14254@strlen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline In-Reply-To: <20110713070447.GA14254@strlen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Patrick Totzke , Notmuch developer list 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: Wed, 13 Jul 2011 09:04:01 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Uwe, On Wed, Jul 13, 2011 at 09:04:47AM +0200, Uwe Kleine-K=F6nig wrote: > > But as Carl sais, we cannot guarantee that a tag is utf8 encoded anyway. > I think it would be right to enforce that tags are utf-8 encoded. > Otherwise the users get strange results if they change their locale. I agree that it would be very nice indeed if it was safe to assume all tags are utf-8. But i also see that it's a bit of an effort to ensure this as all UI's would have to explicitly recode stuff that isn't utf-8. It seems to be a conciously made design decision to allow other encodings for tags, which is up for discussion f course. All I'm saying is that the bindings should conform. And if it's=20 not safe to assume utf-8 here, we shouldn't decode as such. I'm unsure what happens in all the new get_part() parts of the api. If there, all mimepart-text is also returned as utf-8, it would only be consistant to bend tag encodings to utf-8 also. But I doubt thats the ca= se. Can anyone clarify this? /Patrick --UugvWAfsgieZRqgk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk4dX3gACgkQlDQDZ9fWxaoV9wCgjgfhYlTfw86MPGvW0dc+8NUH ViQAoKM9QS5EXYpKlVj6IF2l2BkpDfDN =jPkL -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--