Closed richterdavid closed 2 months ago
Indeed it is more or less mentioned in the README:
Nota: i18n features do not work on Alpine, see https://github.com/openzim/python-scraperlib/issues/134 ; there is one corresponding test which is failing.
Looks like there are two tests in your case, not sure why but anyway strongly related to this locale problem. In your case it looks like locale is available but it misses the fr
and pt_BR.utf8
locales.
Could you precise which locales are installed on your system, and what is your OS?
I'm running the Microsoft Windows Subsystem for Linux flavor of Debian.
$ locale -a
C
C.utf8
en_US.utf8
POSIX
OK, so it is "normal" the tests are failing. Could you please add fr
and pt_BR.utf8
locales and check if the tests are still failing?
They pass after rerunning locale-gen
. One possible small change is to add an error message along the lines of "If $LOCALE is not installed, please install it and rerun this test." If that's not needed after some larger changes, fine, it's not a lot of lost work.
root:~# locale-gen
Generating locales (this might take a while)...
en_US.UTF-8... done
fr_FR.UTF-8... done
pt_BR.UTF-8... done
Generation complete.
root:~# locale -a
C
C.utf8
en_US.utf8
fr_FR.utf8
POSIX
pt_BR.utf8
On slack, asking about this got this response from rgaudin:
Full test logs: