Skip to content

Commit

Permalink
test locale
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Dec 20, 2023
1 parent e3e004b commit 6bb1335
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/vhs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ on:
- '*.tape'

env:
LANG: "C.UTF-8"
TERM: "xterm-256color"
LANG: "en_US.UTF-8"
LANGUAGE: "en_US:en"
LC_ALL: "en_US.UTF-8"

jobs:
vhs:
Expand All @@ -18,10 +20,34 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v2

- name: Set locale
- name: Set Locale
run: |
sudo locale-gen ${{ env.LANG }}
sudo update-locale ${{ env.LANG }}
# Update packages and install necessary locale packages
sudo apt-get update && sudo apt-get install tzdata locales -y
# Generate the en_US.UTF-8 locale
sudo locale-gen ${{ env.LANG }}
# Set the system-wide locale settings
sudo update-locale LANG=${{ env.LANG }}
# Verify the available locales
locale -a
# Display the current locale settings
echo "Actual locale"
locale
# Display the current numeric settings
echo "Actual numeric settings"
locale -c -k LC_NUMERIC
# Display the LANG environment variable
echo "LANG=$LANG"
# Display the current system locale settings
localectl status
- name: Test locale
run: |
Expand Down

0 comments on commit 6bb1335

Please sign in to comment.