Unaccent extension python script Issue in Windows - Mailing list pgsql-hackers

From Ramanarayana
Subject Unaccent extension python script Issue in Windows
Date
Msg-id CAKm4Xs7_61XMyOWmHs3n0mmkS0O4S0pvfWk=7cQ5P0gs177f7A@mail.gmail.com
Whole thread Raw
Responses Re: Unaccent extension python script Issue in Windows
List pgsql-hackers
Hi Hackers,

In master branch,  unaccent extension is having issue with the below python script.This issue is only in windows 10 and python 3.
 
python generate_unaccent_rules.py --unicode-data-file UnicodeData.txt --latin-ascii-file Latin-ASCII.xml > unaccent.rules  

I am getting the following error

UnicodeEncodeError: 'charmap' codec can't encode character '\u0100' in
position 0: character maps to <undefined>  

I went through the python script and found that the stdout encoding is set
to utf-8 only if python version is <=2. The same needs to be done for python 3 
--
Cheers
Ram 4.0

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pgbench MAX_ARGS
Next
From: Alvaro Herrera
Date:
Subject: Re: move hash_any to utils/hash/hashfn.c