From ea1531fcc3486cd72fbdcb51df7f0b6f50a077a5 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Tue, 26 Jul 2022 15:06:04 +0200 Subject: [PATCH] Fix recognizing the default (empty) locale as English This fixes selecting the right man page for 'mount', which would otherwise grab a version from an old distro that happened to have it with an explicit 'en' locale. --- sql/schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/schema.sql b/sql/schema.sql index cce549c..e2c02c3 100644 --- a/sql/schema.sql +++ b/sql/schema.sql @@ -103,7 +103,7 @@ $$ LANGUAGE SQL IMMUTABLE; CREATE OR REPLACE FUNCTION is_english_locale(locale text) RETURNS bool AS $$ - SELECT locale IS NULL OR locale LIKE 'en%'; + SELECT locale IS NULL OR locale = '' OR locale LIKE 'en%'; $$ IMMUTABLE LANGUAGE SQL;