forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0afc0a7
committed
Fix unaccent generation script in Windows
As originally coded, the script would fail on Windows 10 and Python 3because stdout would not be switched to UTF-8 only for Python 2. Thispatch makes that apply to both versions.Also add python 2 compatibility markers so that we know what to removeonce we drop support for that. Also use a "with" clause to ensure filedescriptor is closed promptly.Author: Hugh Ranalli, RamanarayanaReviewed-by: Kyotaro HoriguchiDiscussion:https://postgr.es/m/CAKm4Xs7_61XMyOWmHs3n0mmkS0O4S0pvfWk=7cQ5P0gs177f7A@mail.gmail.comDiscussion:https://postgr.es/m/15548-cef1b3f8de190d4f@postgresql.org1 parentb438e7e commit0afc0a7
1 file changed
+24
-20
lines changedLines changed: 24 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 |
| |
| 39 | + | |
36 | 40 |
| |
| 41 | + | |
37 | 42 |
| |
| 43 | + | |
38 | 44 |
| |
39 | 45 |
| |
40 | 46 |
| |
| |||
45 | 51 |
| |
46 | 52 |
| |
47 | 53 |
| |
| 54 | + | |
48 | 55 |
| |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
| 56 | + | |
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
| |||
233 | 236 |
| |
234 | 237 |
| |
235 | 238 |
| |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
249 |
| - | |
250 |
| - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
251 | 255 |
| |
252 | 256 |
| |
253 | 257 |
| |
|
0 commit comments
Comments
(0)