summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchsetup7
-rw-r--r--todo.org8
2 files changed, 14 insertions, 1 deletions
diff --git a/archsetup b/archsetup
index e598b9f..177afcc 100755
--- a/archsetup
+++ b/archsetup
@@ -523,6 +523,13 @@ prerequisites() {
display "subtitle" "Environment Configuration"
+ # configure locale (must happen before package installs that depend on locale)
+ action="configuring locale" && display "task" "$action"
+ sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
+ (locale-gen >> "$logfile" 2>&1) || error "error" "$action" "$?"
+ echo "LANG=en_US.UTF-8" > /etc/locale.conf
+ export LANG=en_US.UTF-8
+
# sync the time on this machine (one-shot chrony sync)
action="synchronizing system time" && display "task" "$action"
(chronyd -q 'server 0.us.pool.ntp.org iburst' >> "$logfile" 2>&1) || error "error" "$action" "$?"
diff --git a/todo.org b/todo.org
index b8a9ee7..24fed8e 100644
--- a/todo.org
+++ b/todo.org
@@ -261,10 +261,16 @@ CLOSED: [2026-01-21 Wed]
Package fails with yay - appears to be in extra repository, may need to change to AUR install or verify correct source
RESOLVED: Now installed via pacman (line 867: pacman_install at)
-*** TODO [#B] Ensure locale is set properly
+*** DONE [#B] Ensure locale is set properly
+CLOSED: [2026-01-21 Wed]
Errors during install: "setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory"
Perl warnings about locale settings not supported/installed on system
Need to properly configure locale generation and LC_* environment variables
+RESOLVED: Added locale configuration early in Environment Configuration section:
+- Uncomment en_US.UTF-8 in /etc/locale.gen
+- Run locale-gen
+- Set LANG=en_US.UTF-8 in /etc/locale.conf
+- Export LANG for current session
*** DONE [#B] Add opus codec to archsetup
CLOSED: [2026-01-21 Wed]