Skip to content

Commit b7be874

Browse files
committed
Use /etc/locale.gen for extra locales
locale-gen refuses to generate some non-UTF-8 locales (e.g. fr_CA.ISO-8859-1) because they are no longer supported.
1 parent 0aeba02 commit b7be874

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/R-CMD-check-occasional.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ jobs:
8282
- name: Set locale
8383
if: matrix.os == 'ubuntu-latest'
8484
run: |
85-
sudo locale-gen "${{ matrix.locale }}"
85+
LOCALE="${{ matrix.locale }}"
86+
echo "$LOCALE ${LOCALE#*.}" | sudo tee -a /etc/locale.gen
87+
sudo locale-gen --keep-existing
8688
echo "R_CMD_CHECK_LC_ALL=${{ matrix.locale }}" >> $GITHUB_ENV
8789
8890
- uses: actions/checkout@v7

0 commit comments

Comments
 (0)