[python] unicode strings
authorPatrick Totzke <patricktotzke@googlemail.com>
Mon, 5 Dec 2011 21:19:26 +0000 (21:19 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:35 +0000 (09:40 -0800)
23/890a770242763bd354fecdd8b6fb7ee61ffa5e [new file with mode: 0644]

diff --git a/23/890a770242763bd354fecdd8b6fb7ee61ffa5e b/23/890a770242763bd354fecdd8b6fb7ee61ffa5e
new file mode 100644 (file)
index 0000000..bdd2a7b
--- /dev/null
@@ -0,0 +1,68 @@
+Return-Path: <patricktotzke@googlemail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3125E429E26\r
+       for <notmuch@notmuchmail.org>; Mon,  5 Dec 2011 13:19:37 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id S8Z3Hk7ykOqM for <notmuch@notmuchmail.org>;\r
+       Mon,  5 Dec 2011 13:19:36 -0800 (PST)\r
+Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com\r
+ [74.125.83.53])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 9EAA9429E25   for <notmuch@notmuchmail.org>; Mon,  5 Dec 2011 13:19:36 -0800\r
+ (PST)\r
+Received: by eekb57 with SMTP id b57so1080448eek.26\r
+       for <notmuch@notmuchmail.org>; Mon, 05 Dec 2011 13:19:35 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=from:to:subject:date:message-id:x-mailer;\r
+       bh=zUDYwCz/knYpNTCcDp7OgVDaUC1kZiDX0YAQf7MQYLE=;\r
+       b=hRdilu6EHzkFYKJZoweo47a+YIpe2TbkRoONPRRa1VD6vtXm6UGkTEdyWmbxu6NgUZ\r
+       vyQJ3OPUU80Wsz8jA4a7wQ6JGDugM4b8Ic09Gjlex/G55ZVOUflW2+UH+qK/SAfQUGOO\r
+       GYa25ho539r+IL+qaQ4hqq6f/aujiz8lE2tv8=\r
+Received: by 10.14.13.193 with SMTP id b41mr1435981eeb.42.1323119975199;\r
+       Mon, 05 Dec 2011 13:19:35 -0800 (PST)\r
+Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com.\r
+       [82.41.10.37])\r
+       by mx.google.com with ESMTPS id q28sm63212467eea.6.2011.12.05.13.19.33\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Mon, 05 Dec 2011 13:19:34 -0800 (PST)\r
+From: Patrick Totzke <patricktotzke@googlemail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [python] unicode strings\r
+Date: Mon,  5 Dec 2011 21:19:26 +0000\r
+Message-Id: <1323119969-1485-1-git-send-email-patricktotzke@gmail.com>\r
+X-Mailer: git-send-email 1.7.4.1\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 05 Dec 2011 21:19:37 -0000\r
+\r
+\r
+Unicode handling fixes for the bindings:\r
+ - use __unicode__ for string representations, __str__ falls back to this\r
+ - less complicated __str__ for Thread and Message\r
+ - use errors='ignore' parameter for str.decode(). This should fix the\r
+   "UnicodeDecodeError: 'utf8' codec can't decode byte 0xe8 in position"\r
+   exceptions people were seing.\r
+\r
+Best,\r
+/p\r