Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1123

Facter explodes with invalid locales

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 3.1.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      Client 2015-07-22, Client 2015-08-05
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Facter now falls back to the "C" locale if the LANG or LC-related environment variables are not a supported locale.

      Description

      Facter exits most ungracefully with an invalid locale set.

      root@lsa4pvybopydn4m:~# LANG=ABCD /opt/puppetlabs/bin/puppet --version
      terminate called after throwing an instance of 'std::runtime_error'
      what(): locale::facet::_S_create_c_locale name not valid
      Aborted (core dumped)

      It would be most excellent if we were able to catch and gracefully exit in the case of a bad locale.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  matthaus Past Haus
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: