diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2024-12-02 11:52:31 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-12-02 11:55:09 +0100 |
| commit | fb4100293545b30a7eef0b7f3b9bab024d0984a6 (patch) | |
| tree | 9d7c6aa5cd5cdc18efe7a660974b8552367df597 /etc | |
| parent | 2756c660fb2d9e2fe3e1fd0898e4d7038c8273c7 (diff) | |
maint: Run ‘etc/upgrade-manifest.scm’ in a UTF-8 locale.
* etc/upgrade-manifest.scm: Add calls to ‘setlocale’ to force a UTF-8
locale.
Change-Id: Ia567a1e08124d9eab7fb32f3363681a8f37431b1
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/upgrade-manifest.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/upgrade-manifest.scm b/etc/upgrade-manifest.scm index 5e6d7d85e40..9c97d2b4e54 100644 --- a/etc/upgrade-manifest.scm +++ b/etc/upgrade-manifest.scm | |||
| @@ -124,5 +124,14 @@ | |||
| 124 | (name (string-append (package-name package) "-full-upgrade")))) | 124 | (name (string-append (package-name package) "-full-upgrade")))) |
| 125 | (dependents store security-packages 2)))))) | 125 | (dependents store security-packages 2)))))) |
| 126 | 126 | ||
| 127 | ;; Install a UTF-8 locale so that file names in Git checkouts are interpreted | ||
| 128 | ;; as UTF-8 (the libgit2 source tree contains non-ASCII file names, for | ||
| 129 | ;; instance). XXX: This works around the fact that 'cuirass register' and | ||
| 130 | ;; thus 'cuirass evaluate' may not be running with a UTF-8 locale. | ||
| 131 | (unless (string-suffix? ".UTF-8" (setlocale LC_ALL)) | ||
| 132 | (or (false-if-exception (setlocale LC_ALL "C.UTF-8")) | ||
| 133 | (false-if-exception (setlocale LC_ALL "en_US.UTF-8")) | ||
| 134 | (format (current-error-port) "warning: failed to install UTF-8 locale~%"))) | ||
| 135 | |||
| 127 | (concatenate-manifests | 136 | (concatenate-manifests |
| 128 | (list individual-security-upgrades joint-security-upgrades)) | 137 | (list individual-security-upgrades joint-security-upgrades)) |
