postgresql/contrib/unaccent
Alvaro Herrera 0afc0a7841 Fix unaccent generation script in Windows
As originally coded, the script would fail on Windows 10 and Python 3
because stdout would not be switched to UTF-8 only for Python 2.  This
patch makes that apply to both versions.

Also add python 2 compatibility markers so that we know what to remove
once we drop support for that.  Also use a "with" clause to ensure file
descriptor is closed promptly.

Author: Hugh Ranalli, Ramanarayana
Reviewed-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/CAKm4Xs7_61XMyOWmHs3n0mmkS0O4S0pvfWk=7cQ5P0gs177f7A@mail.gmail.com
Discussion: https://postgr.es/m/15548-cef1b3f8de190d4f@postgresql.org
2019-09-10 18:15:15 -03:00
..
expected Add combining characters to unaccent.rules. 2019-02-01 15:23:01 +01:00
sql Add combining characters to unaccent.rules. 2019-02-01 15:23:01 +01:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Update unaccent extension for parallel query. 2016-06-14 14:55:49 -04:00
generate_unaccent_rules.py Fix unaccent generation script in Windows 2019-09-10 18:15:15 -03:00
unaccent--1.0--1.1.sql Update unaccent extension for parallel query. 2016-06-14 14:55:49 -04:00
unaccent--1.1.sql Update unaccent extension for parallel query. 2016-06-14 14:55:49 -04:00
unaccent--unpackaged--1.0.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
unaccent.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
unaccent.control Update unaccent extension for parallel query. 2016-06-14 14:55:49 -04:00
unaccent.rules Add combining characters to unaccent.rules. 2019-02-01 15:23:01 +01:00