Unaccent extension python script Issue in Windows

Поиск
Список
Период
Сортировка
От Ramanarayana
Тема Unaccent extension python script Issue in Windows
Дата
Msg-id CAKm4Xs7_61XMyOWmHs3n0mmkS0O4S0pvfWk=7cQ5P0gs177f7A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Unaccent extension python script Issue in Windows
Список 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 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgbench MAX_ARGS
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: move hash_any to utils/hash/hashfn.c