Force C locale on Ubuntu 16.04 builders

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.2.18, 3.4.11, 3.6.0-rc3
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • v3.4, v3.2
    • Platforms 2017-11-13
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Mark Benvenuto
              Reporter:
              Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: