Ensure test drivers all have sane locales set

This commit is contained in:
Michael Gratton 2019-06-22 14:08:03 +10:00
parent 5a0c105220
commit 788a06144f
3 changed files with 12 additions and 0 deletions

View file

@ -26,6 +26,10 @@ int main(string[] args) {
* Initialise all the things.
*/
// Ensure things like e.g. GLib's formatting routines uses a
// UTF-8-based locale rather ASCII
GLib.Intl.setlocale(LocaleCategory.ALL, "C.UTF-8");
Gtk.init(ref args);
Test.init(ref args);

View file

@ -12,6 +12,10 @@ int main(string[] args) {
Test.init(ref args);
// Ensure things like e.g. GLib's formatting routines uses a
// UTF-8-based locale rather ASCII
GLib.Intl.setlocale(LocaleCategory.ALL, "C.UTF-8");
Geary.RFC822.init();
Geary.HTML.init();
Geary.Logging.init();

View file

@ -26,6 +26,10 @@ int main(string[] args) {
* Initialise all the things.
*/
// Ensure things like e.g. GLib's formatting routines uses a
// UTF-8-based locale rather ASCII
GLib.Intl.setlocale(LocaleCategory.ALL, "C.UTF-8");
Test.init(ref args);
Geary.RFC822.init();