Re: Could not run generate_unaccent_rules.py script when update unicode

2023-09-26 Thread Japin Li
On Wed, 27 Sep 2023 at 13:46, Michael Paquier wrote: > On Wed, Sep 27, 2023 at 09:15:00AM +0800, Japin Li wrote: >> On Wed, 27 Sep 2023 at 08:03, Michael Paquier wrote: >>> I am not sure that many people run this script frequently so that may >>> not be worth adding a check for a defined, still

Re: Could not run generate_unaccent_rules.py script when update unicode

2023-09-26 Thread Michael Paquier
On Wed, Sep 27, 2023 at 09:15:00AM +0800, Japin Li wrote: > On Wed, 27 Sep 2023 at 08:03, Michael Paquier wrote: >> I am not sure that many people run this script frequently so that may >> not be worth adding a check for a defined, still empty or incorrect > > Yeah, not frequently, however, it al

Re: Could not run generate_unaccent_rules.py script when update unicode

2023-09-26 Thread Japin Li
On Wed, 27 Sep 2023 at 08:03, Michael Paquier wrote: > On Tue, Sep 26, 2023 at 10:43:40AM +0800, Japin Li wrote: >> # Allow running this even without --with-python >> PYTHON ?= python >> >> $(srcdir)/unaccent.rules: generate_unaccent_rules.py >> ../../src/common/unicode/UnicodeData.txt Latin-A

Re: Could not run generate_unaccent_rules.py script when update unicode

2023-09-26 Thread Michael Paquier
On Tue, Sep 26, 2023 at 10:43:40AM +0800, Japin Li wrote: > # Allow running this even without --with-python > PYTHON ?= python > > $(srcdir)/unaccent.rules: generate_unaccent_rules.py > ../../src/common/unicode/UnicodeData.txt Latin-ASCII.xml > $(PYTHON) $< --unicode-data-file $(word 2,$^

Could not run generate_unaccent_rules.py script when update unicode

2023-09-25 Thread Japin Li
Hi, hackers When I try to update unicode mapping tables using make update-unicode [1], I encountered an error about following: generate_unaccent_rules.py --unicode-data-file ../../src/common/unicode/UnicodeData.txt --latin-ascii-file Latin-ASCII.xml >unaccent.rules /bin/sh: 1: generate_unacce