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.
This commit is contained in:
parent
af2e12a9ef
commit
53341c70fc
17 changed files with 98 additions and 82 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue