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

Facter timezone utf8 problem

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • FACT 3.9.z
    • FACT 4.2.6
    • Facter 4
    • None
    • Night's Watch
    • 2
    • NW - 2021-10-06, NW - 2021-10-20, NW - 2021-11-03
    • Needs Assessment
    • Bug Fix
    • This release adds a new `timezone` resolver specific to Windows which checks the system codepage and uses it for encoding the timezone fact to avoid unwanted characters on non-English OS.
    • Needs Assessment

    Description

      Hi,

      I got a utf8 problem after upgrading from puppet 6.24.0 (opensource) to 7.9 or 7.10.

      Puppet 6.24.0 (facter -j)
      "timezone": "Est (heure dÆÚtÚ)",
       
      Puppet 7.10.0 (facter -j)
      "timezone": "Est (heure d?été)",
      I got a direct impact when you use Ansible (2.9):

      { "exception": "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.7.0/json/common.rb:286:in `to_json': source sequence is illegal/malformed utf-8 (JSON::GeneratorError)\r\nAu caractère Ligne:243 : 9\r\n+ &facter -j | Tee-Object -Variable facter_output > $null\r\n+ ~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (C:/Program File...GeneratorError):String) [], RemoteException\r\n + FullyQualifiedErrorId : NativeCommandError\r\n\r\nScriptStackTrace:\r\nà <ScriptBlock>, <Aucun fichier> : ligne 243\r\n", "msg": "Unhandled exception while executing module: C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.7.0/json/common.rb:286:in `to_json': source sequence is illegal/malformed utf-8 (JSON::GeneratorError)", "_ansible_verbose_override": true, "_ansible_no_log": false, "changed": false }

      Regards,

      Dominique

      Attachments

        1. image-2021-09-22-14-18-43-384.png
          64 kB
          Luchian Nemes
        2. image-2021-09-22-14-21-56-439.png
          53 kB
          Luchian Nemes
        3. image-2021-10-01-16-49-51-786.png
          696 kB
          Luchian Nemes

        Activity

          People

            luchian.nemes Luchian Nemes
            dominiquearpin Dominique Arpin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support