diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-09-10 17:56:11 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-09-10 18:15:15 -0300 |
commit | 0afc0a7841889c6221fd47430e72f4fe570833f4 (patch) | |
tree | 53f75d9eea31362478cd52a7f85c73ec58e5d696 /src/backend/commands/async.c | |
parent | b438e7e7a1c58e0c20b5f46e73cbd713e8033c69 (diff) | |
download | postgresql-0afc0a7841889c6221fd47430e72f4fe570833f4.tar.gz postgresql-0afc0a7841889c6221fd47430e72f4fe570833f4.zip |
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
Diffstat (limited to 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions