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
11
sqitch/deploy/change_locale_values.sql
Normal file
11
sqitch/deploy/change_locale_values.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- Deploy guix-data-service:change_locale_values to pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
UPDATE lint_checker_descriptions SET locale = REPLACE(locale, '.utf8', '.UTF-8');
|
||||
UPDATE package_metadata_tsvectors SET locale = REPLACE(locale, '.utf8', '.UTF-8');
|
||||
UPDATE package_descriptions SET locale = REPLACE(locale, '.utf8', '.UTF-8');
|
||||
UPDATE package_synopsis SET locale = REPLACE(locale, '.utf8', '.UTF-8');
|
||||
UPDATE lint_warning_messages SET locale = REPLACE(locale, '.utf8', '.UTF-8');
|
||||
|
||||
COMMIT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue