[SERVER-31717] Force C locale on Ubuntu 16.04 builders Created: 25/Oct/17  Updated: 30/Oct/23  Resolved: 02/Nov/17

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.2.18, 3.4.11, 3.6.0-rc3

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-33184 Set LANG=C on ASAN Enterprise SSL Ubu... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4, v3.2
Sprint: Platforms 2017-11-13
Participants:
Linked BF Score: 0

 Description   

For an unknown reason, newlocale fails for "en_US.UTF-8" occasionally on Ubuntu 16.04. The workaround is to explicitly set LANG=C which does not require glibc to load files since it is builtin to glibc.

This surfaces as

 Failed global initialization: BadValue: Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly

because "std::locale::facet::_S_create_c_locale" is throwing a std::runtime_error.



 Comments   
Comment by Githook User [ 02/Nov/17 ]

Author:

{'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-31717 Force C locale on Ubuntu 16.04 builders

(cherry picked from commit 77c44f1f2cfde4efed4b37f65a406ae3f9e88d0a)
Branch: v3.2
https://github.com/mongodb/mongo/commit/f2152d9912d1ff2c79a91ce2fdc8f90f0a3ba8f1

Comment by Githook User [ 02/Nov/17 ]

Author:

{'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-31717 Force C locale on Ubuntu 16.04 builders

(cherry picked from commit 77c44f1f2cfde4efed4b37f65a406ae3f9e88d0a)
Branch: v3.4
https://github.com/mongodb/mongo/commit/2edf4cc4ea728ddbc89c18b2a08223b30bfd71bb

Comment by Githook User [ 02/Nov/17 ]

Author:

{'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-31717 Force C locale on Ubuntu 16.04 builders
Branch: master
https://github.com/mongodb/mongo/commit/77c44f1f2cfde4efed4b37f65a406ae3f9e88d0a

Generated at Thu Feb 08 04:27:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.