aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-09-26 11:45:57 +0100
committerChristopher Baines <mail@cbaines.net>2020-09-26 11:45:57 +0100
commit53341c70fcb8888b040230e28bbe5deb1b1773ce (patch)
treedcb38c6985150ef137f64136e1b18afcdd346d22 /tests
parentaf2e12a9ef529789017caaba8c866b13f9c34067 (diff)
downloaddata-service-53341c70fcb8888b040230e28bbe5deb1b1773ce.tar
data-service-53341c70fcb8888b040230e28bbe5deb1b1773ce.tar.gz
Change the locale codeset representation
From the normalized one, to the one actually contained within glibc. Recent versions of glibc also contain symlinks linking the normalized codeset to the locales with the .UTF-8 ending, but older ones do not. Maybe handling codeset normalisation for queries would be good, but the locale values ending in .UTF-8 are more compatible and allow the code to be simplified. For querying, maybe there should be a locales table which handles different representations.
Diffstat (limited to 'tests')
-rw-r--r--tests/model-package-metadata.scm4
-rw-r--r--tests/model-package.scm4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/model-package-metadata.scm b/tests/model-package-metadata.scm
index 2b97465..2e67233 100644
--- a/tests/model-package-metadata.scm
+++ b/tests/model-package-metadata.scm
@@ -43,8 +43,8 @@
((guix-data-service model package-metadata)
inferior-packages->translated-package-descriptions-and-synopsis
(lambda (inferior inferior-package)
- (cons `(("en_US.utf8" . "Fake synopsis"))
- `(("en_US.utf8" . "Fake description")))))
+ (cons `(("en_US.UTF-8" . "Fake synopsis"))
+ `(("en_US.UTF-8" . "Fake description")))))
(with-mock-inferior-packages
(lambda ()
(use-modules (guix-data-service model package)
diff --git a/tests/model-package.scm b/tests/model-package.scm
index 3999230..e953645 100644
--- a/tests/model-package.scm
+++ b/tests/model-package.scm
@@ -49,8 +49,8 @@
((guix-data-service model package-metadata)
inferior-packages->translated-package-descriptions-and-synopsis
(lambda (inferior inferior-package)
- (cons `(("en_US.utf8" . "Fake synopsis"))
- `(("en_US.utf8" . "Fake description")))))
+ (cons `(("en_US.UTF-8" . "Fake synopsis"))
+ `(("en_US.UTF-8" . "Fake description")))))
(with-mock-inferior-packages
(lambda ()
(use-modules (guix-data-service model package)