migrate locale from en_US.UTF-8 to C.UTF-8

This commit is contained in:
Kamila Łopuszańska 2025-07-02 14:32:07 +02:00 committed by Niels De Graef
parent e1a5e4503a
commit 43c23270a6
4 changed files with 5 additions and 21 deletions

View file

@ -10,9 +10,8 @@ variables:
# See Infrastructure/Infrastructure#97.
TEST_ARGS: -t 10
# Locale used for unit tests. See notes in test/test-engine.vala and
# test/test-client.vala.
TEST_LOCALE: en_US.UTF-8
# Locale used for unit tests
TEST_LOCALE: C.UTF-8
# Build
BUILD_DIR: build

View file

@ -22,12 +22,7 @@ int main(string[] args) {
* Initialise all the things.
*/
// Ensure things like e.g. GLib's formatting routines uses a
// well-known UTF-8-based locale rather ASCII. Would like to use
// C.UTF-8 here, but currently only Debian et al and Fedora ship
// it, and as of Fedora 32 they disagree on collation order for
// non-ASCII chars.
GLib.Intl.setlocale(LocaleCategory.ALL, "en_US.UTF-8");
GLib.Intl.setlocale(LocaleCategory.ALL, "C.UTF-8");
Gtk.init(ref args);
Test.init(ref args);

View file

@ -10,12 +10,7 @@ int main(string[] args) {
* Initialise all the things.
*/
// Ensure things like e.g. GLib's formatting routines uses a
// well-known UTF-8-based locale rather ASCII. Would like to use
// C.UTF-8 here, but currently only Debian et al and Fedora ship
// it, and as of Fedora 32 they disagree on collation order for
// non-ASCII chars.
GLib.Intl.setlocale(LocaleCategory.ALL, "en_US.UTF-8");
GLib.Intl.setlocale(LocaleCategory.ALL, "C.UTF-8");
Test.init(ref args);

View file

@ -22,12 +22,7 @@ int main(string[] args) {
* Initialise all the things.
*/
// Ensure things like e.g. GLib's formatting routines uses a
// well-known UTF-8-based locale rather ASCII. Would like to use
// C.UTF-8 here, but currently only Debian et al and Fedora ship
// it, and as of Fedora 32 they disagree on collation order for
// non-ASCII chars.
GLib.Intl.setlocale(LocaleCategory.ALL, "en_US.UTF-8");
GLib.Intl.setlocale(LocaleCategory.ALL, "C.UTF-8");
Gtk.init(ref args);
Test.init(ref args);