Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aUGqB-0001lL-Eh for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Feb 2016 16:45:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aUGqB-0005yw-1G for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Feb 2016 16:45:07 +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 1aUGpW-00039b-SE for pgsql-bugs@postgresql.org; Fri, 12 Feb 2016 16:44:27 +0000 Received: from hook.sigaev.ru ([93.180.27.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aUGpU-0003Ms-CA for pgsql-bugs@postgresql.org; Fri, 12 Feb 2016 16:44:25 +0000 Received: from xor.sai.msu.ru (newmail.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: teodor) by hook.sigaev.ru (Postfix) with ESMTPSA id 3FFADB191C1; Fri, 12 Feb 2016 19:44:22 +0300 (MSK) Subject: Re: BUG #13440: unaccent does not remove all diacritics To: =?UTF-8?Q?L=c3=a9onard_Benedetti?= , 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> From: Teodor Sigaev Message-ID: <56BE0BE6.5050003@sigaev.ru> Date: Fri, 12 Feb 2016 19:44:22 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <56BCF98B.3040302@mlpo.fr> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) 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 >> So I changed the script to handle special cases, and I added those I >> just mentioned (you will find attached the new version of the script >> and the generated output for convenience). > > Here is the patch, attached. I'm inclining to commit this patch becouse it suggests more regular way to update unaccent rules. That is nice. But I have some notices: 1 Is it possible to do not restrict generator script to Python V2? Python V2, seems, will go away in near future, and it will not be comfortable to install V2 for a single task. 2 As it's easy to see, nowhere in sources of pgsql there is no a UTF-8 encoding, just ASCII. I don't see reason to make an exception for this script. Thank you. -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs