Error: 'pt_BR.CP1252' is not a supported language or locale #8117
Replies: 3 comments
-
Hey! I guess you have not added your locale to the |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help. I updated like this and now it seems to be working steps:
- name: SetLocale
run: |
sudo apt-get update && sudo apt-get install tzdata locales -y
sudo localedef -f CP1252 -i /usr/share/i18n/locales/pt_BR /usr/lib/locale/pt_BR.CP1252
sudo echo 'pt_BR.CP1252 CP1252' | sudo tee -a /etc/locale.gen > /dev/null
sudo mkdir /usr/local/share/i18n
sudo touch /usr/local/share/i18n/SUPPORTED
sudo echo 'pt_BR.CP1252 CP1252' | sudo tee -a /usr/local/share/i18n/SUPPORTED > /dev/null
sudo locale-gen pt_BR.UTF-8
sudo locale-gen pt_BR
sudo locale-gen
locale -a
echo "Actual locale"
locale
echo "Actual numeric settings"
locale -c -k LC_NUMERIC
echo "LANG Variable"
echo "$LANG"
echo "LocaleCtl"
localectl status
https://github.com/insinfo/postgres_fork/blob/master/.github/workflows/dart.yml |
Beta Was this translation helpful? Give feedback.
-
@insinfo, if you don't mind, I will convert this issue to a discussion, since it better suits general or non image related topics |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
@BrightRan @al-cheb @robinmatz
I am experiencing some issues related to the locale settings inside a GitHub Actions pipeline. I am trying to run test cases with pt_BR.CP1252 locale
i am getting this error:

Error: 'pt_BR.CP1252' is not a supported language or locale
https://github.com/insinfo/postgres_fork/actions/runs/5879086761/job/15942427559
Platforms affected
Runner images affected
Image version and build link
https://github.com/insinfo/postgres_fork/actions/runs/5879086761/job/15942427559
Is it regression?
I don't know
Expected behavior
that install the locale normally
Actual behavior
Error: 'pt_BR.CP1252' is not a supported language or locale
Repro steps
create workflow like:
Beta Was this translation helpful? Give feedback.
All reactions