Re: BUG #13440: unaccent does not remove all diacritics

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Léonard Benedetti <benedetti(at)mlpo(dot)fr>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #13440: unaccent does not remove all diacritics
Date: 2016-03-15 17:01:39
Message-ID: 56E83FF3.5040904@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> So I think we can keep just a version for Python 2 for now. If everyone
> agrees, I'll update the files and patch.

Attached patch is a my try to make script works for both 2 & 3 versions of
Python. At least it produces the same result for 2.7 and 3.4. Pls, could you
check? I'm not a Python developer at all.

BTW, I revomed unicode characted from code and leaved it only in comments.

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

Attachment Content-Type Size
improve-unaccent-default-rules-generation-script-v4.patch binary/octet-stream 15.9 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2016-03-15 17:11:01 Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby
Previous Message Michael Paquier 2016-03-15 16:04:48 Re: [BUGS] BUG #14023: pq odbc driver crashed while get data from boolean column