Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aeQfE-0000vg-E8 for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Mar 2016 17:15:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aeQfD-0003rl-T5 for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Mar 2016 17:15:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aeQea-00037Z-QZ for pgsql-bugs@postgresql.org; Fri, 11 Mar 2016 17:15:08 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aeQeT-0006rL-Dw for pgsql-bugs@postgresql.org; Fri, 11 Mar 2016 17:15:07 +0000 Received: from [IPv6:2001:41d0:fc94:4400:ca0a:a9ff:fe90:47fd] (unknown [IPv6:2001:41d0:fc94:4400:ca0a:a9ff:fe90:47fd]) (Authenticated sender: mlpo@mlpo.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 8BAA4A80CB; Fri, 11 Mar 2016 18:14:58 +0100 (CET) Subject: Re: BUG #13440: unaccent does not remove all diacritics To: Teodor Sigaev , PostgreSQL Bugs References: <20150614063707.2734.30270@wrigleys.postgresql.org> <12238.1434304758@sss.pgh.pa.us> <20150615045056.GM133018@postgresql.org> <38161.1434372933@sss.pgh.pa.us> <1790.1434492074@sss.pgh.pa.us> <4186.1434655846@sss.pgh.pa.us> <56A4426F.2040108@mlpo.fr> <56BCAA91.1040208@sigaev.ru> <56BCF7A5.6020204@mlpo.fr> <56BCF98B.3040302@mlpo.fr> <56BE0BE6.5050003@sigaev.ru> <56C4E11D.5050809@mlpo.fr> <56E17AAD.6080605@sigaev.ru> <56E18614.90003@mlpo.fr> <56E18841.2000406@mlpo.fr> <56E2F496.3020904@sigaev.ru> From: =?UTF-8?Q?L=c3=a9onard_Benedetti?= Message-ID: <56E2FD12.2000102@mlpo.fr> Date: Fri, 11 Mar 2016 18:14:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56E2F496.3020904@sigaev.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 11/03/2016 17:38, Teodor Sigaev wrote: >> Here is the patch, attached. > > Hmm, now script doesn't work with Python 2: > % python2 -V > Python 2.7.11 > % python2 contrib/unaccent/generate_unaccent_rules.py > File "contrib/unaccent/generate_unaccent_rules.py", line 7 > SyntaxError: Non-ASCII character '\xe2' in file > contrib/unaccent/generate_unaccent_rules.py on line 7, but no encoding > declared; see http://python.org/dev/peps/pep-0263/ for details > > Is it intentional? > In fact, Python 3 is not backward-compatible. This version brings many new features which are not compatible with Python 2, so it is intentional. To quote the documentation: “Python 3.0 […] is the first ever intentionally backwards incompatible Python release”. Despite all that, I think this transition to Python 3 is wise, it is available since 2008. Python 2 is legacy and its last version (2.7) is a “end-of-life release”. Léonard Benedetti -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs